/* ===========================
   BASE IMPROVEMENTS (aligned with css2)
=========================== */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px; /* Aligned with css2 padding-top/bottom */
    background: #fff; /* Added white background to match css2 */
}

.login-part {
    width: 100%;
    max-width: 500px; /* Changed from 420px to match css2 */
    background: #fff; /* Changed from rgba to solid white */
    border: 1px solid #eee; /* Changed to match css2 border */
    border-radius: 32px; /* Changed from 16px to match css2 */
    padding: 45px 35px; /* Changed to match css2 padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); /* Added shadow from css2 */
}

.title_style {
    text-align: center;
    margin-bottom: 30px; /* Changed from 1.5rem to match css2 */
    font-size: 1.8rem; /* Added font size from css2 */
    color: #111; /* Added color from css2 */
}

.login-form .form-group {
    margin-bottom: 20px; /* Changed from 1.2rem to match css2 */
}

.login-form label {
    position: static !important; /* Added to match css2 */
    display: block;
    font-size: 0.9rem; /* Changed from 0.85rem to match css2 */
    color: #888; /* Changed from var(--text-muted) to match css2 */
    margin-bottom: 6px;
    font-weight: 600; /* Added weight from css2 */
}

.login-form input {
    width: 100%;
    padding: 12px 14px; /* Changed from 12px to match css2 padding */
    border-radius: 12px; /* Changed from 10px to match css2 */
    border: 1px solid #eee; /* Changed to match css2 */
    background: #fff; /* Changed to white */
    color: #111; /* Changed from white to dark text */
    outline: none;
    font-size: 0.95rem; /* Added font size from css2 */
    transition: all 0.2s ease; /* Added transition from css2 */
}

.login-form input:focus {
    border-color: #007bff; /* Changed to match css2 */
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1); /* Added focus shadow from css2 */
}

.login-form .btn {
    width: 100%;
    padding: 12px;
    border-radius: 20px; /* Changed to match css2 button radius */
    background: #111; /* Changed to match css2 */
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    justify-content: center;
    margin-top: 15px; /* Changed from 10px to match css2 */
}

.login-form .btn:hover {
    cursor: pointer;
    background: #26384b; /* Added hover state from css2 */
}

/* Links styling to match css2 */
.login-part a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-part a:hover {
    text-decoration: underline;
}

/* Alert messages */
.alert {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Google login styling */
#login-btn {
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

#login-btn:hover {
    transform: scale(1.05);
}

#google-icon {
    width: 32px;
    height: auto;
    padding-bottom: 18px;
}

#login-with-google {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* ===========================
   TABLET (≤ 1024px)
=========================== */
@media (max-width: 1024px) {
    .login {
        padding: 120px 20px 80px; /* Maintained padding */
    }

    .login-part {
        max-width: 480px; /* Adjusted proportionally */
        padding: 40px 30px;
    }

    .title_style {
        font-size: 1.7rem;
    }
}

/* ===========================
   MOBILE (≤ 768px)
=========================== */
@media (max-width: 768px) {
    .login-part {
        max-width: 100%;
        margin: 0 15px; /* Added margin from css2 */
        padding: 25px; /* Changed to match css2 */
        border-radius: 24px; /* Changed to match css2 */
    }

    .title_style {
        font-size: 1.5rem; /* Changed to match css2 */
        margin-bottom: 25px;
    }

    .login-form input {
        padding: 11px 13px;
        font-size: 0.95rem;
    }

    .login-form .btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ===========================
   SMALL MOBILE (≤ 480px)
=========================== */
@media (max-width: 480px) {
    .login-part {
        padding: 20px;
        margin: 0 12px;
    }

    .title_style {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .login-form label {
        font-size: 0.85rem;
    }

    .login-form input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .login-form .btn {
        font-size: 0.9rem;
        padding: 11px;
    }
}