/* Authentication Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.95) 0%, rgba(0, 8, 20, 0.95) 100%),
                url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(247,101,2,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover, 100px 100px;
    background-position: center, center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(247, 101, 2, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(247, 101, 2, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 60s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 48px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(247, 101, 2, 0.1);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(247, 101, 2, 0.2);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #001A33 0%, #F76502 50%, #001A33 100%);
    border-radius: 16px 16px 0 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #001A33 0%, #F76502 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #656778;
    font-size: 15px;
    font-weight: 400;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #E8E9EA;
}

.auth-footer p {
    margin: 0 0 8px 0;
    color: #656778;
    font-size: 14px;
}

.auth-footer a {
    color: #F76502;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: #EE6302;
    text-decoration: underline;
}

/* Form Styles for Auth Pages */
.auth-card .form-group {
    margin-bottom: 24px;
}

.auth-card .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #001A33;
}

.auth-card .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #001A33;
    background-color: #FFFFFF;
    border: 2px solid #E8E9EA;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-card .form-control:focus {
    outline: none;
    border-color: #F76502;
    box-shadow: 0 0 0 3px rgba(247, 101, 2, 0.1);
}

.auth-card .form-control::placeholder {
    color: #B1B3B8;
}

.auth-card .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #001A33 0%, #001A33 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 26, 51, 0.2);
}

.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, #002244 0%, #002244 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 26, 51, 0.3);
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

/* Alert Styles */
.auth-card .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid;
}

.auth-card .alert-error {
    background-color: #FEF2F2;
    border-left-color: #EF4444;
    color: #B91C1C;
}

.auth-card .alert-success {
    background-color: #E5F9EC;
    border-left-color: #10B759;
    color: #0A7C3E;
}

.auth-card .alert-info {
    background-color: #EFF6FF;
    border-left-color: #3B82F6;
    color: #1E40AF;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .auth-logo {
        font-size: 28px;
    }
}

.auth-demo {
    margin-top: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.demo-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.demo-account {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
    font-family: monospace;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
}
