* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}


.login-card {
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
    max-height: 600px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-section {
   /* background-image: url("./form-img.png");*/
    background-image: url('../image/form-img.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}


    .image-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
        z-index: 1;
    }

.image-content {
    position: relative;
    z-index: 2;
}

.logo-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

    .logo-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.image-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.image-section .highlight {
    background: linear-gradient(120deg, #ffffff 0%, #b3d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.image-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
}

.form-section {
    padding: 20px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
}

    .form-title h2 {
        font-size: 1.7rem;
        color: #333;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .form-title p {
        color: #666;
        font-size: 0.9rem;
    }

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #0052cc;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

    .password-toggle:hover {
        color: #0052cc;
    }

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:focus {
    outline: none;
    border-color: #0052cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

input.error {
    border-color: #dc3545;
    background: #fff5f5;
}

input.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
}

    .error-message.show {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    margin-top: 5px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        cursor: pointer;
        accent-color: #0052cc;
    }

    .checkbox-wrapper label {
        font-size: 0.9rem;
        color: #666;
        cursor: pointer;
        user-select: none;
    }

.forgot-password {
    font-size: 0.9rem;
    color: #0052cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #0066ff;
    }

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 82, 204, 0.6);
    }

    .submit-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .submit-btn .spinner {
        display: none;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto;
    }

    .submit-btn.loading .spinner {
        display: block;
    }

    .submit-btn.loading .btn-text {
        display: none;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    text-align: center;
    margin: 10px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }

    .divider span {
        background: white;
        padding: 0 15px;
        color: #999;
        font-size: 0.85rem;
        position: relative;
        z-index: 1;
    }

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

    .social-btn:hover {
        border-color: #0052cc;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
    }

    .social-btn.facebook {
        color: #1877f2;
    }

    .social-btn.google {
        color: #ea4335;
    }

    .social-btn.twitter {
        color: #1da1f2;
    }

    .social-btn.github {
        color: #333;
    }

.signup-link {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

    .signup-link a {
        color: #0052cc;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .signup-link a:hover {
            color: #0066ff;
        }

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 350px;
}

    .toast.show {
        transform: translateX(0);
    }

    .toast.success {
        border-left: 4px solid #28a745;
    }

    .toast.error {
        border-left: 4px solid #dc3545;
    }

    .toast i {
        font-size: 1.5rem;
    }

    .toast.success i {
        color: #28a745;
    }

    .toast.error i {
        color: #dc3545;
    }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.toast-message {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 968px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .image-section {
        display: none; 
    }

    .logo {
        font-size: 2.5rem;
    }

    .image-section h2 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 50px;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 35px 25px;
    }

    .image-section {
        padding: 35px 25px;
    }

    .logo {
        font-size: 2rem;
    }

    .image-section h2 {
        font-size: 1.3rem;
    }

    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Medium screens / tablets */
@media (max-width: 968px) {
    .login-card {
        grid-template-columns: 1fr; /* One column */
        max-width: 500px;
    }

    .image-section {
        padding: 40px 30px;
        min-height: 300px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .image-section h2 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 50px;
    }
}

/* Small tablets / phones */
@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .image-section {
        display: none; /* Hide image on smaller devices */
    }

    .form-section {
        padding: 40px 20px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .login-card {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .form-section {
        padding: 30px 15px;
    }

    .logo {
        font-size: 2rem;
    }

    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
.validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
}