/* ==========================================================================
   Luxury Minimalist Cinematic CreateAccount - Antigravity Signature Taste
   ========================================================================== */

.register-page-wrapper {
    min-height: 80vh;
    position: relative;
    z-index: 10;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
}

/* Ambient backlight behind the container to create a cinematic glow */
.register-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: registerCinematicFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.register-container::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(0, 196, 204, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

@keyframes registerCinematicFade {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.97);
        filter: blur(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Elegant Floating Card */
.register-card {
    background: rgba(10, 18, 26, 0.55);
    backdrop-filter: blur(35px) saturate(220%);
    -webkit-backdrop-filter: blur(35px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-card:hover {
    border-color: rgba(0, 196, 204, 0.35);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7),
                0 0 35px rgba(0, 196, 204, 0.12);
    transform: translateY(-5px);
}

/* Delicate Fine-Lined Header */
.register-header {
    padding: 45px 35px 25px;
    text-align: center;
    position: relative;
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.logo-icon {
    width: 68px;
    height: 68px;
    background: rgba(0, 196, 204, 0.08);
    border: 1px solid rgba(0, 196, 204, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-icon i {
    font-size: 28px;
    color: #00c4cc;
    text-shadow: 0 0 15px rgba(0, 196, 204, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-card:hover .logo-icon {
    background: rgba(0, 196, 204, 0.15);
    border-color: #00c4cc;
    box-shadow: 0 0 25px rgba(0, 196, 204, 0.4);
    transform: rotate(15deg) scale(1.05);
}

.register-card:hover .logo-icon i {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 196, 204, 0.8);
}

.register-header h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.register-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* Card Body & Form Elements */
.register-body {
    padding: 25px 35px 45px;
}

/* Elegant Segmented Pill Role Selector (Apple-Style) */
.role-toggle {
    display: flex;
    background: rgba(5, 10, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px;
    position: relative;
    gap: 6px;
    margin-bottom: 25px;
}

.role-option {
    flex: 1;
    padding: 12px 16px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.role-option i {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-option span {
    font-size: 0.85rem;
}

.role-option:hover {
    color: rgba(255, 255, 255, 0.85);
}

.role-option:hover i {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Client Selected State: Vivid Sliding Teal Pill */
.role-option.selected-client {
    background: linear-gradient(135deg, #00c4cc 0%, #007b82 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 196, 204, 0.35) !important;
}

.role-option.selected-client i {
    color: #fff !important;
    transform: scale(1.1);
}

/* Photographer Selected State: Vivid Sliding Amber Pill */
.role-option.selected-photographer {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
}

.role-option.selected-photographer i {
    color: #fff !important;
    transform: scale(1.1);
}

/* Smooth Category slide/fade */
.animate-fade-in {
    animation: registerSlideDownFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes registerSlideDownFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
}

/* Elegant Slim Inputs */
.input-wrapper input {
    width: 100%;
    background: rgba(5, 10, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px; /* Fully rounded elegant pill inputs */
    padding: 14px 20px 14px 50px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .input-wrapper input {
    padding: 14px 50px 14px 20px;
}

.input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(5, 10, 18, 0.6);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00c4cc;
    background: rgba(0, 196, 204, 0.03);
    box-shadow: 0 0 25px rgba(0, 196, 204, 0.15);
}

/* Fine-lined elegant Icons */
.input-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

html[dir="rtl"] .input-wrapper i {
    right: 20px;
}

html[dir="ltr"] .input-wrapper i {
    left: 20px;
}

.input-wrapper input:focus + i {
    color: #00c4cc;
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-wrapper textarea {
    width: 100%;
    background: rgba(5, 10, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 14px 20px 14px 50px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    resize: none;
}

html[dir="rtl"] .input-wrapper textarea {
    padding: 14px 50px 14px 20px;
}

.input-wrapper textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(5, 10, 18, 0.6);
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: #00c4cc;
    background: rgba(0, 196, 204, 0.03);
    box-shadow: 0 0 25px rgba(0, 196, 204, 0.15);
}

.input-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-wrapper textarea:focus + i {
    color: #00c4cc;
}

/* High-End Minimal Button with Glass reflection */
.btn-register {
    width: 100%;
    background: linear-gradient(135deg, #00c4cc 0%, #007b82 100%);
    border: none;
    border-radius: 50px; /* Elegant pill button */
    padding: 14px 30px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 196, 204, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-register::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(30deg);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 196, 204, 0.45);
    filter: brightness(1.05);
}

.btn-register:hover::after {
    left: 140%;
    opacity: 1;
}

.btn-register:active {
    transform: translateY(-1px);
}

/* Minimalist Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 25px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Unified Link Styling */
.login-link {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.login-link a {
    color: #00c4cc;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-link a:hover {
    color: #00e5ff;
    gap: 7px;
}

/* Validation Errors */
.error-summary {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 25px;
    font-size: 0.8rem;
    color: #ff5f5f;
}

.error-summary ul {
    margin: 0;
    padding-right: 18px;
}

.field-error {
    font-size: 0.76rem;
    color: #ff5f5f;
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

/* Loading Spin */
.btn-register.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-register.loading i {
    animation: registerSpin 1s linear infinite;
}

@keyframes registerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    .register-container {
        margin: 10px;
    }
    .register-header {
        padding: 35px 25px 20px;
    }
    .register-body {
        padding: 20px 25px 35px;
    }
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    .logo-icon i {
        font-size: 24px;
    }
    .register-header h1 {
        font-size: 1.45rem;
    }
    .role-option {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}
