/* login.css - Main Navigation and Footer with Login Content */

/* Base Styles (Inherited from style.css but with login specific overrides) */

.auth-section {
    padding: 100px 0;
    min-height: calc(100vh - 80px - 140px);
    /* Adjust based on navbar and footer height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fbf9;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 900px;
    /* Increased for table and detail forms */
    margin: 20px auto;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .auth-section {
        padding: 40px 0;
    }

    .auth-card {
        padding: 24px 20px;
        margin: 0 auto;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2E3A2F;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-form .input-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #9acb9b;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(154, 203, 155, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background-color: #9acb9b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: #82b984;
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.auth-footer a {
    color: #9acb9b;
    font-weight: 700;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Terms Table Styling */
.terms-container {
    margin-bottom: 30px;
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #eee;
    font-weight: 700;
    font-size: 0.95rem;
    color: #444;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: -1px;
}

.terms-table th,
.terms-table td {
    border: 1px solid #eee;
    padding: 15px 10px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.terms-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 700;
}

.all-agree-box {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #eee;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

/* Signup Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.full-width {
    grid-column: span 2;
}

/* Detail Section Toggle CTA */
.detail-toggle-btn {
    grid-column: span 2;
    background-color: #ffffff;
    color: #444;
    border: 1px solid #9acb9b;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 30px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.detail-toggle-btn:hover {
    background-color: #f0f7f0;
    transform: translateY(-2px);
}

.detail-toggle-btn svg {
    transition: transform 0.3s;
}

.detail-toggle-btn.active svg {
    transform: rotate(180deg);
}

.detail-content {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s;
    opacity: 0;
}

.detail-content.active {
    max-height: 3000px;
    /* Arbitrary large value to allow expansion */
    opacity: 1;
    margin-top: 20px;
}


/* Radio Choice Groups (Drinking/Food habits) */
.radio-group-container {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.radio-item-box {
    width: 100%;
}

.radio-item-box.full-width {
    width: 100%;
}

.radio-label-title {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #2E3A2F;
    text-align: left;
    border-left: 4px solid #9acb9b;
    padding-left: 12px;
}

.radio-options {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 5px;
    width: 100%;
}

.radio-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.82rem;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.radio-options label span {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.3;
    letter-spacing: -0.5px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .radio-options {
        flex-wrap: wrap;
        gap: 12px;
    }

    .radio-options label {
        flex: 1 1 20%;
        min-width: 70px;
    }
}

/* Buttons for Terms-Signup Transition */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-cancel {
    flex: 1;
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.btn-next {
    flex: 2;
    background-color: #5da0d8;
    /* Matching the blue in the reference image */
}

/* Helper for multi-step */
.hidden {
    display: none !important;
}

/* Specific Input Styling for Images */
.auth-form .input-with-label {
    display: flex;
    flex-direction: column;
}

.auth-form .input-with-label label span {
    color: #e74c3c;
    margin-left: 4px;
}

/* Checkbox alignment for 'info messages' */
.agree-checks {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    /* Horizontal */
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    font-size: 0.85rem;
}

.agree-checks label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
    white-space: nowrap;
}