﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'Cairo', 'Noto Naskh Arabic', sans-serif;
}

.outer-background {
    background-color: #6b3b1a;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-container {
    background-color: #f5e0c8;
    padding: 50px 40px;
    border-radius: 0;
    width: 600px;
    box-shadow: none;
    text-align: center;
}

.register-title {
    font-size: 34px;
    font-weight: 700;
    color: #5c3317;
    margin-bottom: 35px;
    margin-top: 0;
    font-family: 'Amiri', serif;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

    .form-row.single-row {
        justify-content: right;
    }

.form-group {
    flex: 1;
    text-align: right;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    height: 42px;
    border: 1px solid #b9977b;
    border-radius: 6px;
    background-color: transparent;
    font-size: 15px;
    color: #5c3317;
    outline: none;
    transition: 0.3s;
    direction: rtl;
    text-align: right;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

    input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        left: 10px;
        right: auto;
        cursor: pointer;
        opacity: 0.6;
    }

label {
    display: block;
    font-size: 15px;
    color: #5c3317;
    margin-bottom: 6px;
    font-family: 'Amiri', serif;
}

input,
select {
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    border: 1px solid #b9977b;
    border-radius: 6px;
    background-color: transparent;
    font-size: 15px;
    color: #5c3317;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

    input:focus,
    select:focus {
        border-color: #8c6a5d;
    }

.agree-section {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5c3317;
    user-select: none;
}

    .agree-section input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 13px;
        height: 13px;
        border: 2px solid #5c3317;
        border-radius: 3px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background-color: transparent;
        transition: all 0.2s ease;
    }

        .agree-section input[type="checkbox"]:hover {
            background-color: #f3d8bb;
        }

        .agree-section input[type="checkbox"]:checked {
            background-color: #5c3317;
            border-color: #5c3317;
        }

            .agree-section input[type="checkbox"]:checked::after {
                content: '✔';
                color: #fff;
                font-size: 9px;
                line-height: 1;
            }

.register-btn {
    width: 100%;
    height: 42px;
    background-color: #5c3317;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

    .register-btn:hover {
        background-color: #3f2211;
    }

.login-link {
    margin-top: 15px;
    font-size: 14px;
    color: #5c3317;
}

    .login-link a {
        color: #5c3317;
        font-weight: 600;
        text-decoration: none;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.text-danger {
    font-size: 13px;
    color: #a94442;
}

@media (max-width: 600px) {
    .register-container {
        width: 90%;
        padding: 40px 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .register-title {
        font-size: 26px;
        margin-top: 285px;
    }   
}

.register-container {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
