﻿/* Background with gradient and soft shapes */
.register-bg {
    min-height: 100vh;
    background: linear-gradient(120deg, #f8fafc 60%, #e3f2fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Centered card with shadow and rounded corners */
.register-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 40px rgba(0,51,102,0.08), 0 1.5px 6px rgba(32,201,151,0.09);
    padding: 2.7rem 2.2rem 2.2rem 2.2rem;
    max-width: 410px;
    width: 100%;
    margin: 2rem auto;
    animation: fadeIn 1s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1.7rem;
    letter-spacing: -1px;
    text-align: center;
}

/* Floating label input style */
.form-floating > .form-control {
    border-radius: 0.8rem;
    border: 1.5px solid #e3eafc;
    background: #f8fafc;
    font-size: 1.07rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-floating > .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 2px #0d6efd22;
        background: #fff;
    }

.form-floating > label {
    color: #888;
    font-size: 1rem;
    left: 1.1rem;
    padding: 0 0.2rem;
}

.form-floating > .form-control:focus ~ label {
    color: #0d6efd;
}

/* Button style */
.register-btn {
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.7rem 0;
    margin-top: 0.4rem;
    box-shadow: 0 2px 12px rgba(13,110,253,0.08);
    transition: background 0.18s, box-shadow 0.18s;
}

    .register-btn:hover {
        background: #20c997;
        color: #fff;
        box-shadow: 0 4px 24px rgba(32,201,151,0.13);
    }

/* Responsive */
@media (max-width: 576px) {
    .register-card {
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    }

    .register-title {
        font-size: 1.3rem;
    }
}


/* RTL support for floating labels and inputs */
.main-layout.rtl .form-floating > .form-control,
.main-layout.rtl .form-floating > label {
    text-align: right;
    direction: rtl;
}

.main-layout.rtl .form-floating > label {
    left: auto;
    right: 1.1rem;
}

html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.register-split-container {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: linear-gradient(120deg, #f8fafc 60%, #e3f2fd 100%);
}

.register-image-side,
.register-form-side {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.register-image-side {
    background: linear-gradient(120deg, #e3eafc 60%, #cbe6ff 100%);
    padding: 0 2vw;
}

.register-marketing-side .marketing-content {
    max-width: 600px;
    width: 100%;
    background: rgba(255,255,255,0.92);
    border-radius: 1.5rem;
    box-shadow: 0 8px 40px rgba(13,110,253,0.08);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
    direction: inherit;
}

.marketing-title {
    color: #003366;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    direction: inherit;
}

.marketing-list {
    color: #0d6efd;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-left: 0;
    padding-right: 0;
    direction: inherit;
    list-style: none;
}

    .marketing-list li {
        margin-bottom: 0.7rem;
        font-weight: 600;
        color: #003366;
        position: relative;
        padding-right: 0.7rem;
        direction: inherit;
    }

        .marketing-list li:before {
            content: "✔";
            color: #20c997;
            font-size: 1rem;
            margin-left: 0.6rem;
            margin-right: 0.3rem;
            vertical-align: middle;
        }

.marketing-note {
    margin-top: 1.2rem;
    font-size: 1.13rem;
    color: #20c997;
    font-weight: 700;
    background: #e3fcec;
    border-radius: 0.7rem;
    padding: 0.7rem 1.2rem;
    text-align: center;
    width: 100%;
    direction: inherit;
}

.register-form-side {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: #fff;
}

.register-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 40px rgba(0,51,102,0.08), 0 1.5px 6px rgba(32,201,151,0.09);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 410px;
    width: 100%;
    margin: 0;
    animation: fadeIn 1s cubic-bezier(.4,0,.2,1);
    direction: inherit;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -1px;
    direction: inherit;
}

.form-floating > .form-control {
    border-radius: 0.8rem;
    border: 1.5px solid #e3eafc;
    background: #f8fafc;
    font-size: 1.07rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-floating > .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 2px #0d6efd22;
        background: #fff;
    }

.form-floating > label {
    color: #888;
    font-size: 1rem;
    left: 1.1rem;
    padding: 0 0.2rem;
}

.form-floating > .form-control:focus ~ label {
    color: #0d6efd;
}

.register-btn {
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.7rem 0;
    margin-top: 0.4rem;
    box-shadow: 0 2px 12px rgba(13,110,253,0.08);
    transition: background 0.18s, box-shadow 0.18s;
}

    .register-btn:hover {
        background: #20c997;
        color: #fff;
        box-shadow: 0 4px 24px rgba(32,201,151,0.13);
    }

/* RTL floating label fix */
.main-layout.rtl .form-floating > .form-control,
.main-layout.rtl .form-floating > label {
    text-align: right;
    direction: rtl;
}

.main-layout.rtl .form-floating > label {
    left: auto;
    right: 1.1rem;
    padding-right: 0.5rem;
    padding-left: 0;
}

.main-layout.rtl .form-floating > .form-control {
    padding-right: 1.1rem;
    padding-left: 0.75rem;
}

@media (max-width: 991px) {
    .register-split-container {
        flex-direction: column;
        height: 100vh;
    }

    .register-image-side {
        min-height: 220px;
        padding: 2rem 0;
    }

    .register-form-side {
        min-height: 420px;
        padding: 2rem 0;
    }

    .register-marketing-side .marketing-content {
        max-width: 98vw;
        padding: 1.2rem 0.7rem;
    }
}

@media (max-width: 576px) {
    .marketing-title {
        font-size: 1.2rem;
    }

    .register-card {
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    }
}
/* إخفاء أي عنصر يحمل كلاس desktop-only على الشاشات الصغيرة */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
        margin-bottom: 250px;
    }
}