﻿:root {
    --primary-blue: #002b5c;
    --secondary-blue: #003972;
    --accent-blue: #004a8f;
    --light-gray: #f5f7fa;
    --dark-gray: #2d3748;
    --security-green: #00a86b;
    --warning-red: #e53e3e;
}

body {
    background-color: var(--light-gray);
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.security-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 43, 92, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 43, 92, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.security-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23002b5c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.signup-container {
    max-width: 500px;
    margin: 2% auto;
    box-shadow: 0 12px 40px rgba(0, 43, 92, 0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.signup-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .signup-header::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 10px;
        background: rgba(0, 58, 114, 0.3);
        filter: blur(10px);
        border-radius: 50%;
    }

    .signup-header img {
        height: 50px;
        margin-bottom: 15px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    }

    .signup-header h2 {
        font-family: 'Ubuntu', sans-serif;
        font-weight: 700;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
        font-size: 24px;
    }

    .signup-header p {
        font-weight: 400;
        opacity: 0.9;
        font-size: 14px;
        letter-spacing: 0.3px;
    }

.signup-body {
    padding: 40px;
    position: relative;
}

.security-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background-color: var(--security-green);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
    z-index: 2;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-control {
    height: 50px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding-left: 15px;
    font-size: 15px;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

    .form-control:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 0.2rem rgba(0, 74, 143, 0.1);
    }

.input-group-text {
    background-color: #f8fafc;
    border-right: none;
    color: var(--primary-blue);
    font-size: 15px;
}

.input-group .form-control {
    border-left: none;
    background-color: #f8fafc;
}

.password-strength {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0%;
    background-color: #e53e3e;
    transition: all 0.3s;
}

.btn-signup {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    color: white;
    height: 50px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.8px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 43, 92, 0.15);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

    .btn-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 43, 92, 0.2);
    }

    .btn-signup:active {
        transform: translateY(0);
    }

    .btn-signup::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .btn-signup:hover::after {
        opacity: 1;
    }

.login-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    font-weight: 500;
    letter-spacing: 0.2px;
}

    .login-link:hover {
        color: var(--accent-blue);
        text-decoration: underline;
    }

.alert-message {
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
}

    .alert-message i {
        margin-right: 12px;
        font-size: 18px;
    }

.security-features {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 12px;
    color: #718096;
}

    .security-features div {
        display: flex;
        align-items: center;
    }

    .security-features i {
        margin-right: 6px;
        color: var(--security-green);
        font-size: 14px;
    }

.footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #718096;
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    letter-spacing: 0.2px;
}

    .footer-links a {
        color: var(--primary-blue);
        text-decoration: none;
        margin: 0 12px;
        transition: all 0.2s;
        font-weight: 500;
    }

        .footer-links a:hover {
            color: var(--accent-blue);
            text-decoration: underline;
        }

.copyright {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #a0aec0;
    letter-spacing: 0.3px;
}

/* Animation for messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Keypad animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Custom message box styles */
.messagebox-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.messagebox {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-out forwards;
}

.messagebox-success {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
}

.messagebox-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #742a2a;
}

.messagebox-info {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.messagebox-warning {
    background-color: #fffaf0;
    border: 1px solid #feebc8;
    color: #744210;
}

.messagebox-icon {
    margin-right: 12px;
    font-size: 20px;
}

.messagebox-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .messagebox-close:hover {
        opacity: 1;
    }

/* Custom switch styling */
.custom-switch .custom-control-label::before {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--security-green);
    border-color: var(--security-green);
}

.custom-switch .custom-control-label::after {
    background-color: white;
}

.terms-text {
    font-size: 13px;
    color: var(--dark-gray);
}

    .terms-text a {
        color: var(--primary-blue);
        font-weight: 500;
    }
