/* =========================================================================
   REGISTER STYLES
   ========================================================================= */

.register-layout {
    min-height: calc(100vh - 80px); /* subtract header/footer approx */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
}

.register-container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-top: 4px solid var(--clr-primary);
}

.register-header {
    text-align: center;
    margin-bottom: 35px;
}

.register-header h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.register-header p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--clr-text-muted);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 14px 15px 14px 45px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--clr-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.input-wrapper input:focus + i {
    color: var(--clr-primary);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.form-terms input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--clr-primary);
}

.form-terms label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.form-terms a {
    color: var(--clr-primary);
}

.form-terms a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 1rem;
    border-radius: 6px;
}

.register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.register-footer a {
    color: #fff;
    font-weight: 600;
}

.register-footer a:hover {
    color: var(--clr-primary);
}

@media (max-width: 480px) {
    .register-container {
        padding: 30px 20px;
    }
}

/* =========================================================================
   AUTH (LOGIN + REGISTER)
   ========================================================================= */

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 40px;
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    background: rgba(0, 0, 0, 0.25);
}

.auth-media {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
}

.auth-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 9, 14, 0.2) 0%, rgba(6, 9, 14, 0.7) 100%);
}

.auth-media-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
}

.auth-media-content img {
    width: 210px;
    height: auto;
    margin-bottom: 16px;
}

.auth-media-content h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-media-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    max-width: 420px;
}

.auth-container {
    width: 100%;
    max-width: 100%;
    padding: 44px 40px;
    border-top: 4px solid var(--clr-primary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    box-shadow: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form .input-wrapper input,
.auth-form .input-wrapper select,
.auth-form .input-wrapper textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 14px 15px 14px 45px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.auth-form .input-wrapper input:focus,
.auth-form .input-wrapper select:focus,
.auth-form .input-wrapper textarea:focus {
    border-color: var(--clr-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.auth-form .input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form .input-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 3;
}

.auth-form .input-wrapper .password-toggle:hover {
    color: var(--clr-primary);
}

.auth-form .field-errors,
.auth-form .non-field-errors {
    color: #ff9f9f;
    font-size: 0.85rem;
    margin-top: 6px;
}

.auth-form .field-errors ul,
.auth-form .non-field-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-inline .auth-link {
    color: var(--clr-primary);
    font-size: 0.85rem;
}

.auth-inline .auth-link:hover {
    text-decoration: underline;
}

.auth-note {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.auth-note a {
    color: #fff;
    font-weight: 600;
}

.auth-note a:hover {
    color: var(--clr-primary);
}

.auth-social {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-social form {
    margin: 0;
}

.auth-social button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.auth-social button:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.auth-alert {
    border: 1px solid rgba(255, 115, 115, 0.45);
    background: rgba(125, 18, 18, 0.25);
    color: #ffd1d1;
    font-size: 0.88rem;
    border-radius: 6px;
    padding: 10px 12px;
}

.auth-hcaptcha {
    margin-top: 6px;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-media {
        min-height: 220px;
    }

    .auth-container {
        border-left: 0;
    }
}

@media (max-width: 768px) {
    .auth-layout {
        padding: 100px 5% 24px;
    }

    .auth-container {
        padding: 28px 20px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }
}