/* Login Page Specific Styles */

/* Login Card */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.dark .login-background-image {
    opacity: 0.2;
}

.login-gradient-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background-color: rgba(19, 127, 236, 0.2);
    border-radius: 50%;
    filter: blur(120px);
}

.login-gradient-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background-color: rgba(19, 127, 236, 0.2);
    border-radius: 50%;
    filter: blur(120px);
}

/* Login Card Styles */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dark .login-card {
    background-color: #0f172a;
    border-color: #1e293b;
}

/* Card Header */
.login-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(19, 127, 236, 0.1);
    margin-bottom: 1.5rem;
}

.login-logo span {
    color: #137fec;
    font-size: 1.875rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.dark .login-title {
    color: white;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #8b5cf6;
}

.dark .login-subtitle {
    color: #cbd5e1;
}

/* Form Styles */
.login-form {
    padding: 2rem;
    space-y: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

.dark .form-label {
    color: #cbd5e1;
}

.form-label-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password {
    font-size: 0.875rem;
    font-weight: 500;
    color: #137fec;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: rgba(19, 127, 236, 0.8);
}

.form-input-wrapper {
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input-icon {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #9ca3af;
    font-size: 1.25rem;
}

.form-input {
    display: block;
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dark .form-input {
    background-color: #1e293b;
    border-color: #334155;
    color: white;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: inset 0 0 0 2px #137fec;
}

.form-input-toggle {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.form-input-toggle:hover {
    color: #4b5563;
}

.dark .form-input-toggle:hover {
    color: #cbd5e1;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-input {
    height: 1rem;
    width: 1rem;
    color: #137fec;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    cursor: pointer;
}

.dark .checkbox-input {
    background-color: #1e293b;
    border-color: #475569;
}

.checkbox-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.dark .checkbox-label {
    color: #94a3b8;
}

/* Error Message */
.error-message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .error-message {
    background-color: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.3);
}

.error-message.hidden {
    display: none;
}

.error-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background-color: #137fec;
    cursor: pointer;
    transition: all 0.2s ease;
    transform-origin: center;
}

.submit-btn:hover {
    background-color: #1e40af;
    transform: translateY(-0.125rem);
}

.submit-btn:active {
    transform: scale(0.95);
}

.submit-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Footer Link */
.login-footer {
    padding-top: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.dark .login-footer {
    border-color: #1e293b;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    gap: 0.25rem;
}

.dark .back-link {
    color: #94a3b8;
}

.back-link:hover {
    color: #0f172a;
}

.dark .back-link:hover {
    color: #e2e8f0;
}

.back-icon {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.back-link:hover .back-icon {
    transform: translateX(-0.25rem);
}

/* Page Footer */
.login-page-footer {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-text {
    font-size: 0.75rem;
    color: #a0aec0;
}

.dark .footer-text {
    color: #64748b;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-link {
    font-size: 0.75rem;
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dark .footer-link {
    color: #64748b;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .login-card {
        max-width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    .login-header {
        padding: 2rem 1.5rem 1rem;
    }

    .login-form {
        padding: 1.5rem;
    }
}
