/* Login Page Styles */

/********** Container Styles **********/
.login-container {
    font-family: 'Avenir', sans-serif !important;
    min-width: 100vw;
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Gradient background effect */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(155, 211, 221, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

/********** Brand Section **********/
.brand-section {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    animation: fadeIn 0.8s ease-out;
}

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

.brand-title {
    font-family: 'Avenir', sans-serif !important;
    font-size: 48px;
    color: #D9D9D6;
    margin-bottom: 40px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.brand-title strong {
    font-family: 'Avenir', sans-serif !important;
    color: #9BD3DD;
    font-weight: 700;
}

/********** Login Box **********/
.login-box {
    font-family: 'Avenir', sans-serif !important;
    width: 100%;
    max-width: 480px;
    background-color: #232127;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(155, 211, 221, 0.1);
}

/********** Header Styles **********/
.login-header {
    font-family: 'Avenir', sans-serif !important;
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-family: 'Avenir', sans-serif !important;
    color: #D9D9D6;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    margin-bottom: 8px;
}

.login-header p {
    font-family: 'Avenir', sans-serif !important;
    color: #797A7C;
    font-size: 16px;
    margin: 0;
}

/********** Form Styles **********/
.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-family: 'Avenir', sans-serif !important;
    color: #D9D9D6;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #282828;
    border: 1px solid #3D4355;
    border-radius: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
    transition: all 0.3s ease;
}

.input-wrapper:hover {
    border-color: #4D5468;
}

.input-wrapper:focus-within {
    border-color: #9BD3DD;
    box-shadow: 0 0 0 3px rgba(155, 211, 221, 0.1);
}

.input-icon {
    color: #797A7C;
    margin-right: 12px;
    font-size: 18px;
}

.form-input {
    font-family: 'Avenir', sans-serif !important;
    background: none;
    border: none;
    color: #D9D9D6;
    font-size: 16px;
    width: 100%;
    outline: none;
}

.form-input::placeholder {
    font-family: 'Avenir', sans-serif !important;
    color: #797A7C;
}

/********** Button Styles **********/
.login-button {
    font-family: 'Avenir', sans-serif !important;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 32px;
    padding-right: 32px;
    background-color: #9BD3DD;
    color: #282828;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.login-button:hover {
    background-color: #7bc5d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 211, 221, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/********** Link Styles **********/
.footer-links {
    font-family: 'Avenir', sans-serif !important;
    text-align: center;
    margin-top: 24px;
}

.footer-links a {
    font-family: 'Avenir', sans-serif !important;
    color: #9BD3DD;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #7bc5d2;
    text-decoration: underline;
}

/********** Checkbox Styles **********/
.remember-me {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #9BD3DD;
}

.remember-me label {
    font-family: 'Avenir', sans-serif !important;
    color: #797A7C;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

/********** Loading Animation **********/
.loading-spinner {
    opacity: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #282828;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.loading-spinner.show {
    opacity: 1;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/********** Message Styles **********/
.error-message {
    font-family: 'Avenir', sans-serif !important;
    display: none;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.success-message {
    font-family: 'Avenir', sans-serif !important;
    display: none;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

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

/********** Responsive Styles **********/
@media (max-width: 640px) {
    .brand-logo {
        width: 150px;
        height: 150px;
    }
    
    .brand-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .login-box {
        padding-top: 30px;
        padding-bottom: 30px;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-button {
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 24px;
        padding-right: 24px;
    }
}