/* Premium Register Page Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold-primary: #d4af37;
    --gold-secondary: #aa8c2c;
    --gold-gradient: linear-gradient(135deg, #f5d061 0%, #e1b326 100%);
    --dark-bg: #0f172a;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
}

body {
    font-family: 'Outfit', sans-serif;
}

.register {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../../images/frontend/banner/bannergolden.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    margin-top: -100px;
}

/* Dark Overlay for better contrast */
.register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.register__container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Left Side - Image */
.register__left {
    width: 45%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative Circle behind image */
.register__left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.register__imageIcon {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.register__left:hover .register__imageIcon {
    transform: scale(1.02);
}

/* Right Side - Form */
.register__right {
    width: 55%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register__title {
    font-size: 36px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.register__subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
}

.register__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.register__field {
    width: 100%;
}

.app-input__label,
.phone-input__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-input__required,
.phone-input__required {
    color: #ef4444;
}

.register__input input,
.phone-number-input input,
.register__password-input input,
.country-select select {
    width: 100%;
    height: 52px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--input-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.register__input input:focus,
.phone-number-input input:focus,
.register__password-input input:focus,
.country-select select:focus {
    border-color: var(--gold-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    outline: none;
}

.register__input input::placeholder {
    color: #94a3b8;
}

/* Phone Input Styling */
.phone-input__wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.country-select {
    position: relative;
    width: 130px;
    flex-shrink: 0;
}

.country-select select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Password Input */
.register__password-input .position-relative {
    position: relative;
}

.register__password-input input {
    padding-right: 50px;
}

.password-show-hide {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    z-index: 5;
    font-size: 18px;
}

.password-show-hide:hover {
    color: var(--gold-primary);
}

/* Password Rules */
.register__password-rules {
    list-style: none;
    padding: 15px;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.register__password-rules li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.register__password-rules li::before {
    content: '•';
    color: #cbd5e1;
    font-size: 18px;
    line-height: 0;
}

.register__password-rules li.is-valid {
    color: #10b981;
}

.register__password-rules li.is-valid::before {
    content: '✓';
    color: #10b981;
    font-size: 14px;
}

/* Terms */
.register__terms {
    background: #fff;
    padding: 5px 0;
}

.register__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    cursor: pointer;
}

.register__checkbox-input {
    appearance: none;
    background-color: #fff;
    margin-top: 4px;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: grid;
    place-content: center;
    transition: all 0.2s;
}

.register__checkbox-input::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.register__checkbox-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.register__checkbox-input:checked::before {
    transform: scale(1);
}

.register__link {
    color: var(--gold-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register__link:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* Submit Button */
.register__button {
    width: 100%;
    height: 56px;
    background: var(--gold-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
    margin-top: 10px;
}

.register__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
    filter: brightness(1.05);
}

.register__button:active {
    transform: translateY(0);
}

.register__signin {
    margin-top: 30px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 991px) {
    .register {
        padding: 20px 15px;
        align-items: flex-start;
        /* Better scrolling on mobile */
    }

    .register__container {
        flex-direction: column;
        max-width: 500px;
    }

    .register__left {
        display: none;
        /* Hide image on tablet/mobile for cleaner flow */
    }

    .register__right {
        width: 100%;
        padding: 40px 25px;
    }

    .register__title {
        font-size: 28px;
    }
}