/* Registration Page Styling */
.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 2rem 1rem;
}

.registration-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid #e2e8f0;
}

.registration-card h1 {
    color: #002FA7;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #002FA7;
    box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
}

.form-group input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group input.success {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Error Messages */
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #002FA7 0%, #2c5aa0 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 47, 167, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #16a34a;
}

.success-message.show {
    display: block;
    animation: slideIn 0.4s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #16a34a;
    margin: 0 auto 1rem;
    animation: checkmark 0.6s ease;
}

.success-message h2 {
    color: #15803d;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #166534;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.view-accounts-btn {
    display: inline-block;
    background: linear-gradient(135deg, #002FA7 0%, #2c5aa0 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.view-accounts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 47, 167, 0.3);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .registration-card h1 {
        font-size: 1.75rem;
    }

    .submit-btn {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .registration-card {
        padding: 1.5rem 1rem;
    }

    .registration-card h1 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 0.75rem;
    }
}
