/* Font-Face */
@font-face {
    font-family: 'Roboto';
    src: url('/static/a_home/fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Roboto';
    src: url('/static/a_home/fonts/Roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafc;
    color: #00203f;
    margin: 0;
    padding: 0;
}

/* Signup Page Wrapper */
.signup-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

/* Background Pattern */
.signup-bg-pattern {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' width='40' height='40' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='100%25' height='100%25' fill='none'/%3E%3Ccircle cx='20' cy='20' r='1' fill='%2300203F' fill-opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23pattern)'/%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: -1;
}

/* Signup Container */
.signup-container {
    width: 100%;
    max-width: 550px;
    z-index: 1;
}

/* Signup Card */
.signup-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 32, 63, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 32, 63, 0.15);
}

/* Logo Section */
.signup-logo-section {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(135deg, #00203f, #00305f);
}

.signup-logo {
    height: 60px;
    width: auto;
}

/* Signup Content */
.signup-content {
    padding: 2.5rem 2rem;
}

.signup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00203f;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

.signup-subtitle {
    font-size: 1rem;
    color: #4A5568;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #00203f;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #a0aec0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #00203f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #00203f;
    box-shadow: 0 0 0 3px rgba(0, 32, 63, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* Button Styles */
.btn-signup {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(90deg, #00203f, #004080);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    opacity: 1;
}

.btn-signup:hover {
    background: linear-gradient(90deg, #002b54, #004d99);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 32, 63, 0.15);
}

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

.btn-signup:disabled {
    background: linear-gradient(90deg, #9CA3AF, #9CA3AF);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-signup:disabled:hover {
    background: linear-gradient(90deg, #9CA3AF, #9CA3AF);
    transform: none;
    box-shadow: none;
}

/* Login Link */
.login-link-container {
    text-align: center;
}

.login-link-container p {
    font-size: 0.875rem;
    color: #4A5568;
    margin: 0;
}

.login-link {
    color: #00203f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #004080;
    text-decoration: underline;
}

/* Error Message */
.signup-error {
    display: flex;
    align-items: flex-start;
    background-color: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.error-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #EF4444;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.error-message p {
    font-size: 0.875rem;
    color: #B91C1C;
    margin: 0.25rem 0;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .signup-content {
        padding: 2rem 1.5rem;
    }
    
    .signup-title {
        font-size: 1.5rem;
    }
    
    .signup-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .form-input {
        padding: 0.7rem 1rem 0.7rem 2.75rem;
    }
    
    .input-icon {
        left: 0.75rem;
        width: 1.1rem;
        height: 1.1rem;
    }
    
    .signup-logo {
        height: 50px;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group, .form-row {
    opacity: 1; /* Always visible by default */
    animation: fadeInUp 0.5s ease forwards;
}

/* Ensure form elements are always visible after load */
.form-group.loaded, .form-row.loaded {
    opacity: 1;
    animation: none;
}

.form-group:nth-child(1),
.form-row:nth-child(1) {
    animation-delay: 0.2s;
}

.form-group:nth-child(2),
.form-row:nth-child(2) {
    animation-delay: 0.35s;
}

.form-group:nth-child(3),
.form-row:nth-child(3) {
    animation-delay: 0.5s;
}

/* Removed problematic animation that sets opacity: 0 initially */

.login-link-container {
    animation: fadeInUp 0.5s 0.8s ease forwards;
    opacity: 1; /* Always visible by default */
}

/* Ensure the form rows animate properly */
.form-row .form-group {
    animation: none;
    opacity: 1;
}
