/* Login Page Styles */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gradient-bg {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

/* Quarter circles for the black background */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-field {
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    border: 1.1px solid #d1d1d6;
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 400;
}

.input-field::placeholder {
    color: #a8a8a8;
    font-weight: 400;
}

.input-field:focus {
    border-width: 2.5px;
    border-color: #000000;
    background-color: #ffffff !important;
    outline: none;
    box-shadow: none;
    padding-left: 46.5px;
    padding-right: 46.5px;
}

.input-icon {
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-primary {
    background: #000000;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.social-btn {
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 1.1px solid #d1d1d6;
    font-weight: 500;
    font-size: 15px;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    border-color: #a8a8a8;
}

.social-btn:active {
    transform: translateY(0);
}

.logo-container {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loginContainer {
    display: block;
    width: 100%;
    min-height: 100vh;
}

#loginContainer.hidden {
    display: none;
}

#appContainer {
    display: none;
}

#appContainer.active {
    display: block;
    width: 100%;
    min-height: 100vh;
}

/* Additional refinements for labels and text */
label {
    font-weight: 600;
    color: #000000 !important;
    font-size: 14px;
    letter-spacing: -0.01em;
}

/* Input icon styling */
.input-icon svg {
    color: #86868b;
}

.input-field:focus + .input-icon svg,
.input-field:focus ~ .input-icon svg {
    color: #000000;
}

/* Link styling */
a {
    transition: color 0.2s ease;
}

/* Divider text styling */
.relative .text-sm {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #86868b;
}

/* Improved heading styles */
h1 {
    letter-spacing: -0.02em;
}

/* Social button icon spacing */
.social-btn svg {
    flex-shrink: 0;
}

/* Remove the divider border inside password field for the eye icon */
#togglePassword {
    border-left: none;
    background-color: transparent;
    border: none;
    padding-right: 1rem;
}

#togglePassword::before {
    display: none;
}

/* Adjust padding when password input is focused to account for thicker border */
#password:focus {
    padding-left: 46.5px;
    padding-right: 46.5px;
}

/* Adjust padding when email input is focused to account for thicker border */
#email:focus {
    padding-left: 46.5px;
    padding-right: 14.5px;
}

/* Make the eye icon appear inside the input field */
#togglePassword svg {
    transition: color 0.2s ease;
}

/* Forgot Password and Back to Login link styling */
#showForgotPasswordBtn,
#backToLoginBtn {
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    display: inline-block;
    position: relative;
}

#showForgotPasswordBtn:hover,
#backToLoginBtn:hover {
    color: #1a1a1a;
    text-decoration: none;
}

#showForgotPasswordBtn::after,
#backToLoginBtn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

#showForgotPasswordBtn:hover::after,
#backToLoginBtn:hover::after {
    width: 100%;
}

/* Back to Login container spacing fix */
#backToLoginBtn {
    margin-top: 1.5rem;
}

/* Forgot password email input styling */
#forgotEmail:focus {
    padding-left: 46.5px;
    padding-right: 14.5px;
}

/* Mobile logo positioning - fix for horizontal centering */
.lg\:hidden.absolute {
    left: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
}

/* Ensure the image inside is centered */
.lg\:hidden.absolute img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Error styling for input fields */
.input-field.border-red-500 {
    border-color: #ef4444 !important;
    border-width: 1.5px !important;
}

.input-field.border-red-500:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Error message animation */
#emailError,
#passwordError,
#forgotEmailError {
    animation: slideDown 0.3s ease-out;
    font-weight: 500;
    color: #dc2626 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login error message styling */
#loginError {
    animation: fadeInScale 0.3s ease-out;
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Success message styling */
#forgotPasswordSuccess {
    animation: fadeInScale 0.3s ease-out;
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hidden class utility */
.hidden {
    display: none !important;
}

/* Override hidden for responsive classes at large screens */
@media (min-width: 1024px) {
    .lg\:flex.hidden {
        display: flex !important;
    }
}


