/* auth.css - V4 Component Styles */

/* Note: Root variables are inherited from main.css */

/* Auth Layout Container (Centers the card within the main container) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 0 100px;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 0;
    /* Padding handled by internal spacing or reset */
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 15px;
    color: #666;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    /* Consistent form radius */
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.2s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* Password Toggle */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.forgot-link {
    color: #666;
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #3d5020;
    /* Darker Sage */
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: var(--color-dark);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Social Login */
.social-login-section {
    margin-bottom: 30px;
}

.social-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-1px);
}

.social-btn.kakao {
    background: #FEE500;
    color: #191919;
}

.social-btn.google {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #999;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.auth-divider span {
    padding: 0 15px;
}

/* Auth Link Footer */
.auth-card-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.auth-card-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

/* Registration Progress */
.register-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 60px;
}

.prog-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.prog-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.prog-step.active .prog-circle {
    background: var(--color-primary);
    color: #fff;
}

.prog-step.active .prog-label {
    color: var(--color-primary);
    font-weight: 700;
}

.prog-step.done .prog-circle {
    background: var(--color-primary);
    /* Or a distinct 'done' color */
    color: #fff;
}

.prog-line {
    flex: 1;
    height: 2px;
    background: #eee;
    margin: 0 -15px;
    /* Overlap slightly */
    margin-bottom: 22px;
    /* Align with circle center roughly */
    position: relative;
    z-index: 0;
    max-width: 60px;
}

.prog-line.filled {
    background: var(--color-primary);
}

/* Checkbox Styles */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.checkbox-wrap input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.agreement-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Verification Input */
.verify-input {
    text-align: center;
    font-size: 24px !important;
    letter-spacing: 0.2em;
    font-weight: 700;
}