﻿/* ------------------ Reset & Font ------------------ */
body {
    margin: 0;
    font-family: "IRANSans", sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(79,70,229,0.6), rgba(147,51,234,0.6)),
        url('/images/real-estate-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
}

/* ------------------ Wrapper ------------------ */
.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 0 !important;
}

@media (max-width: 576px) {
    .wrapper {
        padding: 1rem;
        align-items: flex-start;
    }
}

/* ------------------ Glass Card ------------------ */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    overflow: hidden;
}

    /* Optional geometric decoration */
    .glass-card::before {
        content: '';
        position: absolute;
        width: 150px;
        height: 150px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        top: -30px;
        right: -30px;
        transform: rotate(45deg);
        pointer-events: none;
    }

/* ------------------ Typography ------------------ */
h3, h5, .form-label {
    color: white;
    margin: 0;
}

/* ------------------ Inputs & Selects ------------------ */
.glass-card .form-control,
.glass-card select.form-control {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    border: none;
    padding: 0.75rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

    .glass-card .form-control:focus,
    .glass-card select.form-control:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(245,158,11,0.6);
    }

/* ------------------ Input group text ------------------ */
.input-group-text {
    background: rgba(255,255,255,0.8);
    border: none;
}

/* ------------------ Buttons ------------------ */
.btn-gradient {
    background: linear-gradient(90deg, #f59e0b, #f97316); /* نارنجی روشن */
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.75rem;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(245,158,11,0.4);
    }

.btn-secondary {
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
}

/* ------------------ Alerts ------------------ */
.text-danger {
    font-size: 0.9rem;
}

/* ------------------ Modal ------------------ */
.modal-content.glass-card {
    padding: 2rem;
    border-radius: 1rem;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 576px) {
    .glass-card {
        padding: 1.5rem;
    }

    h5 {
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

/* ------------------ Optional geometric decoration inside card ------------------ */
.glass-card .decor-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
    pointer-events: none;
}

.form-control,
select.form-control {
    direction: rtl;
    text-align: right;
}