
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;

    background-image: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(200,16,46,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="800" fill="url(%23grid)"/><circle cx="200" cy="150" r="80" fill="none" stroke="rgba(200,16,46,0.15)" stroke-width="2"/><circle cx="200" cy="150" r="120" fill="none" stroke="rgba(200,16,46,0.1)" stroke-width="1"/><circle cx="1000" cy="600" r="100" fill="none" stroke="rgba(200,16,46,0.12)" stroke-width="2"/><circle cx="1000" cy="600" r="150" fill="none" stroke="rgba(200,16,46,0.08)" stroke-width="1"/><path d="M 100 400 L 300 450 L 250 600" fill="none" stroke="rgba(200,16,46,0.08)" stroke-width="1"/><path d="M 800 200 L 950 250 L 900 350" fill="none" stroke="rgba(200,16,46,0.08)" stroke-width="1"/><rect x="600" y="100" width="80" height="80" fill="none" stroke="rgba(200,16,46,0.1)" stroke-width="1" transform="rotate(45 640 140)"/><rect x="150" y="650" width="60" height="60" fill="none" stroke="rgba(200,16,46,0.1)" stroke-width="1" transform="rotate(30 180 680)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;  
    padding-top: 100px;
}
 

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(200, 16, 46, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(200, 16, 46, 0.1) 0%, transparent 50%);
    pointer-events: none;
}


.login-btn {
    position: absolute;
    display: flex;
    align-items: center;
    top: 30px;
    right: 30px;
    padding: 12px 25px;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(200, 16, 46, 0.3);
}

.content {
    text-align: center;
    color: #1a1a1a;
    padding: 20px;
}

.logo { 
    margin: 0 auto 10px; 
}

.logo img{ 
    height: 160px;
}

h1 {
    font-size: 45px;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: 2px;
}

.cfrc {
    color: #c8102e;
}

.systems {
    color: #ffffff;
} 

.tagline {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px; 
    color: #e8e6e1;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    color: #e8e6e1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    right: -450px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal.active {
    right: 50%;
    transform: translate(50%, -50%);
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.modal-header h2 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.modal-header p {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #c8102e;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #c8102e;
}

.submit-btn {
    width: 100%;
    padding: 16px; 
    align-items: center;
    background: #c8102e;
    color: white;
    border: none; 
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
}

.submit-btn:hover {
    background: #a00d25;
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forgot-password a:hover {
    color: #c8102e;
}


.spinner-border {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: -0.125em;
    border-width: 2px; 
    border-radius: 50%;
    animation:  0.75s linear infinite spinner-border;
    border: 2px solid currentcolor;
    border-right-color: transparent;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg)  
    }
} 

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 1px;
} 



.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-card {
    min-width: 320px;
    padding: 18px 24px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(400px);
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.alert-card.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
}

.alert-success .alert-icon {
    background: #10b981;
    color: white;
}

.alert-error .alert-icon {
    background: #c8102e;
    color: white;
}

.alert-info .alert-icon {
    background: #3b82f6;
    color: white;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    animation: progress 3s linear forwards;
}

.alert-success .alert-progress {
    background: #10b981;
}

.alert-error .alert-progress {
    background: #c8102e;
}

.alert-info .alert-progress {
    background: #3b82f6;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}
 

@media (max-width: 768px) {
    .modal {
        width: 90%;
        max-width: 420px;
        padding: 35px;
    }

    .login-btn {
        top: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }

    h1 {
        font-size: 35px;
    }
    
    .logo img{ 
        height: 120px;
    }

    .tagline {
        font-size: 14px;
    } 
    
    .alert-container {
        left: auto;
        right: 20px;
    }

    .alert-card {
        min-width: auto;
        max-width: 300px;
    }
}