/* Affiliate Auth Styles - Register & Login */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #f8fafc;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.split-left {
    width: 42%;
    min-height: 100vh;
    background: linear-gradient(135deg, #328f95 0%, #1a5f63 100%);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 40px;
}

.brand-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.tagline {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: fadeIn 0.8s ease 0.2s both;
}

.sub-tagline {
    font-size: 16px;
    opacity: 0.8;
    animation: fadeIn 0.8s ease 0.4s both;
}

.split-right {
    width: 58%;
    margin-left: 42%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
}

.form-card {
    width: 100%;
    max-width: 580px;
    background: #fff;
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease;
}

/* Login page specific - smaller form */
.form-card.login-card {
    max-width: 440px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 8px;
}

.form-header p {
    color: #6b7c93;
    font-size: 15px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3d4f5f;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i.icon,
.input-wrapper i:not(.fa-eye):not(.fa-eye-slash) {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8b8;
    font-size: 14px;
    transition: color 0.3s;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 2px solid #e8edf2;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #328f95;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 143, 149, 0.1);
}

.input-wrapper input:focus ~ i.icon,
.input-wrapper input:focus ~ i:not(.fa-eye):not(.fa-eye-slash) {
    color: #328f95;
}

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

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9aa8b8;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #328f95;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.password-hint {
    font-size: 11px;
    color: #8896a6;
    margin-top: 6px;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #328f95;
}

.checkbox-wrapper span {
    font-size: 14px;
    color: #5a6b7d;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #328f95 0%, #287a80 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(50, 143, 149, 0.3);
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 143, 149, 0.4);
}

.divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: #a0aec0;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8edf2;
}

.divider span {
    padding: 0 15px;
}

.form-footer {
    text-align: center;
    color: #6b7c93;
    font-size: 14px;
}

.form-footer a {
    color: #328f95;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: #287a80;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.back-home {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #6b7c93;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.back-home:hover {
    color: #328f95;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
    margin-top: 4px;
}

/* International Phone Input Styles */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding-left: 8px;
}

.iti--separate-dial-code .iti__selected-flag {
    background: transparent;
    border-radius: 8px 0 0 8px;
}

.iti--separate-dial-code input {
    padding-left: 90px !important;
}

.iti input {
    width: 100%;
    padding: 13px 14px 13px 90px;
    border: 2px solid #e8edf2;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.iti input:focus {
    outline: none;
    border-color: #328f95;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 143, 149, 0.1);
}

.iti input::placeholder {
    color: #a0aec0;
}

.iti__country-list {
    border-radius: 10px;
    border: 1px solid #e8edf2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 200px;
}

.iti__country {
    padding: 8px 12px;
}

.iti__country:hover {
    background: #f0f4f8;
}

.iti__country--highlight {
    background: rgba(50, 143, 149, 0.1);
}

.iti__dial-code {
    color: #6b7c93;
}

/* Responsive */
@media (max-width: 1024px) {
    .split-left {
        display: none;
    }

    .split-right {
        width: 100%;
        margin-left: 0;
        padding: 30px 20px;
    }

    .form-card {
        padding: 35px 25px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }
}
