/* Registration page styles - Classic Design */

.register-container {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100%;
}

.register-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.register-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.register-title {
    text-align: center;
    color: #212529;
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 4px 0;
}

.register-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.register-card .form-control::placeholder {
    font-size: 0.84rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    background-color: #ffffff;
    outline: none;
}

.register-card label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.btn-register {
    display: block;
    width: 100%;
    background-color: #212529;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.btn-register:hover {
    background-color: #343a40;
    color: white;
}

/* Terms checkbox styling */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    float: none;
    margin-top: 2px;
    margin-left: 0;
    margin-right: 0;
    border: 2px solid #495057;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: #212529;
    border-color: #212529;
}

.form-check-label {
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.form-check-label a {
    color: #0d6efd;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

[dir="rtl"] .register-card .form-check {
    flex-direction: row;
    justify-content: flex-start;
}

[dir="rtl"] .register-card .form-check-label {
    text-align: right;
    width: 100%;
}

[dir="rtl"] .register-card .form-check-input {
    margin: 2px 0 0 8px;
}

/* Links section */
.register-card hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 20px 0 16px 0;
}

.register-card .text-center {
    font-size: 14px;
}

.register-card .text-center a {
    color: #0d6efd;
    text-decoration: none;
}

.register-card .text-center a:hover {
    text-decoration: underline;
}

.register-card .text-center p {
    margin: 0 0 8px 0;
}

.register-card .text-center p:last-child {
    margin-bottom: 0;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.password-field-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    font-size: 14px;
    line-height: 1;
}

.password-toggle-btn:hover {
    color: #495057;
}

.password-toggle-btn:focus {
    outline: none;
}

.password-field-wrapper .form-control {
    padding-inline-end: 56px !important;
}

.password-checklist {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9fa;
    margin: 8px 0 16px 0;
}

.checklist-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-item::before {
    content: "•";
    color: #adb5bd;
    font-size: 14px;
    line-height: 1;
}

.checklist-item.is-valid {
    color: #198754;
}

.checklist-item.is-valid::before {
    content: "✓";
    color: #198754;
}

.checklist-item.is-invalid {
    color: #dc3545;
}

.checklist-item.is-invalid::before {
    content: "×";
    color: #dc3545;
}

/* Responsive design */
@media (max-width: 576px) {
    .register-card {
        padding: 24px 20px;
        margin: 0 12px;
        border-radius: 10px;
    }

    .register-title {
        font-size: 18px;
    }

    .register-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .btn-register {
        padding: 14px 20px;
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 14px;
    }
}
