@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Left side content */
.content-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
}

.image-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); */
}

.description {
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2d3748, #1a365d);
    color: white;
    margin: 0%;
}

.description p {
    line-height: 1.6;
    opacity: 0.9;
    margin: 0%;
}

/* Right side form */
.form-section {
    padding: 2rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.875rem;
    color: #003566;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    flex-grow: 1;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.input-group .icon-left {
    position: absolute;
    left: 0.75rem;
    color: #6b7280;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    color: #6b7280;
    cursor: pointer;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* .forgot-password {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
} */

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #ef392d;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #eb6c63;
}

.submit-btn:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}

.signup-prompt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
}

.signup-prompt a {
    color: #ef392d;
    text-decoration: none;
    margin-left: 0.25rem;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

.error-message {
    display: none;
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Loading spinner */
.spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (min-width: 1024px) {
    .container {
        flex-direction: row;
        min-height: 100vh;
    }

    .content-section {
        width: 50%;
        min-height: 100vh;
    }

    .image-container {
        flex: 1;
        min-height: 50vh;
        /* Adjusted for desktop view */
    }

    .description {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .form-section {
        width: 50%;
        min-height: 100vh;
        justify-content: center;
        padding: 3rem;
    }
}

/* For smaller mobile devices */
@media (max-width: 640px) {
    .image-container {
        min-height: 250px;
    }

    .description {
        padding: 1.5rem;
    }

    .description h1 {
        font-size: 2rem;
    }

    .form-section {
        padding: 1.5rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}