/* Authentication Page Styles */
@import url('landing.css');

body {
    background-color: var(--bg-alt);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 2rem; /* Less top padding, more bottom */
    max-width: 950px; /* Wide enough for auth-card.wide (900px) plus padding */
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    padding: 2rem 1.5rem; /* Reduced padding */
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.auth-card.wide {
    max-width: 900px; /* Set a max-width instead of none */
    width: 100%;
    padding: 2rem 1.5rem;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Form Grid for wider forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Registration option cards */
.registration-option {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.registration-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.registration-option .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.registration-option h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.registration-option p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Better button text wrapping */
.btn-block {
    white-space: nowrap; /* Prevent wrapping on single line if possible */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 0.5rem 0.75rem 1.5rem; /* Even less padding on mobile */
    }

    .auth-card {
        padding: 1.5rem 1rem; /* More compact on mobile */
        border-radius: 0.75rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .auth-card.wide {
        padding: 1.5rem 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Allow button text to wrap on very small screens, but nicely */
    .btn-block {
        white-space: normal;
        line-height: 1.3;
        padding: 0.75rem 1rem;
        min-height: 44px; /* Touch-friendly */
        font-size: 0.95rem;
    }

    /* Adjust form group margins */
    .form-group {
        margin-bottom: 1.25rem;
    }

    /* Registration cards on mobile */
    .registration-option {
        padding: 1.5rem 1rem;
    }

    .registration-option h3 {
        font-size: 1.1rem;
    }

    .registration-option p {
        font-size: 0.9rem;
    }

    .registration-option .icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .registration-option .icon-circle i {
        font-size: 1.25rem !important;
    }
}

/* Tablet and up */
@media (min-width: 769px) {
    .auth-container {
        padding: 1.5rem 2rem 2.5rem;
    }

    .auth-card {
        padding: 2.5rem 2rem;
    }

    .auth-card.wide {
        padding: 2.5rem 2rem;
    }
}