﻿:root {
    --primary-gold: #D4AF37;
    --dark-bg: #1a1a1a;
    --card-bg: rgba(30, 30, 30, 0.95);
    --input-bg: rgba(255, 255, 255, 0.05);
    --text-muted: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow-x: hidden;
}

.validation-summary-errors li{
    list-style: none;
}
/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    animation: float 15s infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Main Container */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Glass Card Effect */
.register-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(212, 175, 55, 0.05);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Line */
.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    }
}

.logo-wrapper img {
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.welcome-text h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.welcome-text h3 {
    color: var(--primary-gold);
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Form Styles */
.form-floating {
    margin-bottom: 20px;
}

    .form-floating > .form-control {
        background: var(--input-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        height: 56px;
        border-radius: 12px;
        padding-left: 45px;
        transition: all 0.3s ease;
    }

        .form-floating > .form-control:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--primary-gold);
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
            transform: translateY(-2px);
        }

    .form-floating > label {
        color: var(--text-muted);
        left: 45px;
        padding-left: 0;

    }

    .form-floating > label::after {
        background-color: transparent !important;
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: var(--primary-gold);
        transform: scale(0.80) translateY(-0.5rem) translateX(-4.85rem);
    }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ .input-icon {
    color: var(--primary-gold);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

    .password-toggle:hover {
        color: var(--primary-gold);
    }

/* Checkbox Custom */
.form-check {
    margin-bottom: 25px;
    padding-right: 30px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    margin-right: -30px;
}

    .form-check-input:checked {
        background-color: var(--primary-gold);
        border-color: var(--primary-gold);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    }

.form-check-label {
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

    .form-check-label a {
        color: var(--primary-gold);
        text-decoration: none;
        position: relative;
    }

        .form-check-label a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 0;
            height: 1px;
            background: var(--primary-gold);
            transition: width 0.3s ease;
        }

        .form-check-label a:hover::after {
            width: 100%;
        }

/* Button Styles */
.btn-register {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #B8960C 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-register:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    }

    .btn-register:active {
        transform: translateY(-1px);
    }

    .btn-register::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-register:hover::after {
        left: 100%;
    }

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 25px;
    color: #888;
    font-size: 0.95rem;
}

    .login-link a {
        color: var(--primary-gold);
        text-decoration: none;
        font-weight: 600;
        position: relative;
        transition: all 0.3s ease;
    }

        .login-link a:hover {
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    }

    .divider span {
        padding: 0 15px;
    }

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .social-btn:hover {
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--primary-gold);
        transform: translateY(-3px);
        color: var(--primary-gold);
    }

/* Loading Animation */
.spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
    display: none;
}

.btn-register.loading .spinner-border {
    display: inline-block;
}

.btn-register.loading .btn-text {
    display: none;
}

/* Responsive */
@media (max-width: 576px) {
    .register-card {
        padding: 30px 20px;
        margin: 10px;
    }

    .logo-wrapper {
        width: 80px;
        height: 80px;
    }

    .welcome-text h2 {
        font-size: 1.25rem;
    }

    .welcome-text h3 {
        font-size: 1.1rem;
    }
}

/* Input Animation on Load */
.form-floating {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

    .form-floating:nth-child(1) {
        animation-delay: 0.2s;
    }

    .form-floating:nth-child(2) {
        animation-delay: 0.3s;
    }

    .form-floating:nth-child(3) {
        animation-delay: 0.4s;
    }

    .form-floating:nth-child(4) {
        animation-delay: 0.5s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Animation */
.success-checkmark {
    display: none;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--primary-gold);
}

    .check-icon::before {
        top: 3px;
        left: -2px;
        width: 30px;
        transform-origin: 100% 50%;
        border-radius: 100px 0 0 100px;
    }

    .check-icon::after {
        top: 0;
        left: 30px;
        width: 60px;
        transform-origin: 0 50%;
        border-radius: 0 100px 100px 0;
        animation: rotate-circle 4.25s ease-in;
    }

.icon-line {
    height: 5px;
    background-color: var(--primary-gold);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

    .icon-line.line-tip {
        top: 46px;
        left: 14px;
        width: 25px;
        transform: rotate(45deg);
        animation: icon-line-tip 0.75s;
    }

    .icon-line.line-long {
        top: 38px;
        right: 8px;
        width: 47px;
        transform: rotate(-45deg);
        animation: icon-line-long 0.75s;
    }

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(212, 175, 55, 0.5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: var(--card-bg);
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }

    5% {
        transform: rotate(-45deg);
    }

    12% {
        transform: rotate(-405deg);
    }

    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}
