﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #27ae60;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px;
}

.registration-container {
    max-width: 600px;
    margin: 10px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.header-section {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

    .header-section h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
    }

    .header-section .subtitle {
        opacity: 0.9;
        font-size: 14px;
        margin-top: 3px;
    }


.steps-container {
    background: white;
    padding: 10px 30px;
    border-bottom: 1px solid var(--border-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #e0e0e0;
        z-index: 1;
    }

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto 5px;
    border: 3px solid white;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.step.active .step-circle {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.step.completed .step-circle {
    background: var(--success-color);
    color: white;
}

    .step.completed .step-circle::after {
        content: '✓';
        font-size: 16px;
    }

.form-sections {
    padding: 20px 30px;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .form-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .section-title i {
        color: var(--secondary-color);
        font-size: 16px;
    }


.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: block;
    font-size: 13px;
}

.required::after {
    content: ' *';
    color: var(--accent-color);
}

.form-control {
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.3s;
    height: 32px;
    width: 100%;
}

    .form-control:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

textarea.form-control {
    height: auto;
    min-height: 40px;
    resize: vertical;
    padding: 8px 12px;
}


.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    background-color: #e9ecef;
    border: 1.5px solid var(--border-color);
    border-right: none;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    border-radius: 6px 0 0 6px;
}


    .input-group-text.rounded-icon {
        border-radius: 50% !important;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-left: 1.5px solid var(--border-color);
        margin-left: -1px;
    }

select.form-control {
    padding: 5px 10px;
    height: 32px;
}


.gender-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gender-option {
    flex: 1;
    min-width: 70px;
}

    .gender-option input[type="radio"] {
        display: none;
    }

    .gender-option label {
        display: block;
        padding: 6px;
        text-align: center;
        border: 1.5px solid var(--border-color);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 500;
        font-size: 13px;
    }

    .gender-option input[type="radio"]:checked + label {
        border-color: var(--secondary-color);
        background: rgba(52, 152, 219, 0.1);
        color: var(--secondary-color);
    }

    .gender-option label:hover {
        border-color: var(--secondary-color);
    }


.button-group {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
    background: var(--light-bg);
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    height: 36px;
}

    .btn i {
        font-size: 12px;
    }

.btn-back {
    background: #95a5a6;
    color: white;
}

    .btn-back:hover {
        background: #7f8c8d;
        transform: translateY(-1px);
    }

.btn-next {
    background: var(--secondary-color);
    color: white;
}

    .btn-next:hover {
        background: #2980b9;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    }

.btn-submit {
    background: var(--success-color);
    color: white;
}

    .btn-submit:hover {
        background: #219653;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    }

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 6px 15px;
}

    .btn-login:hover {
        background: var(--primary-color);
        color: white;
    }


.row {
    margin-bottom: 5px;
}

.col-md-6 {
    padding-left: 8px;
    padding-right: 8px;
}


.field-validation-error {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

.input-validation-error {
    border-color: var(--accent-color) !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.validation-message-temporary {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 3px;
    display: block;
    animation: fadeInOut 5s ease forwards;
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 10px;
    border-radius: 2px;
    border-left: 3px solid #e74c3c;
}

.input-error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
    animation: shake 0.5s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-5px);
        display: none;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

.alert {
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
}

    .alert i {
        font-size: 12px;
        margin-right: 5px;
    }


.text-muted {
    font-size: 11px;
    margin-top: 2px;
    display: block;
}


@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .registration-container {
        margin: 5px auto;
        border-radius: 10px;
    }

    .header-section {
        padding: 12px 15px;
    }

        .header-section h1 {
            font-size: 20px;
        }

    .steps-container {
        padding: 8px 15px;
    }

    .step {
        width: 70px;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
        border-width: 2px;
    }

    .steps::before {
        top: 17px;
        height: 2px;
    }

    .form-sections {
        padding: 15px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-control {
        height: 30px;
        font-size: 13px;
        padding: 5px 10px;
    }

    .button-group {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }

        .button-group > div {
            display: flex;
            gap: 8px;
            width: 100%;
        }

    .btn {
        flex: 1;
        justify-content: center;
        padding: 6px 12px;
        font-size: 13px;
        height: 32px;
    }

    .btn-login {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .col-md-6 {
        padding-left: 6px;
        padding-right: 6px;
    }
}
#Password, #ConfirmPassword {
    border-right: 1.5px solid var(--border-color);
}

#togglePassword, #toggleConfirmPassword {
    background: #f8f9fa;
    border: 1.5px solid var(--border-color);
    border-left: none;
    color: #666;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0 6px 6px 0;
}

    #togglePassword:hover, #toggleConfirmPassword:hover {
        background: red !important;
        color: #333;
    }

#passwordHelp {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background-color: #e74c3c;
}

.strength-medium {
    background-color: #f39c12;
}

.strength-strong {
    background-color: #27ae60;
}


.input-group.input-error {
    border: 1.5px solid var(--accent-color);
    border-radius: 6px;
}

    .input-group.input-error .form-control {
        border-color: transparent;
    }

    .input-group.input-error #togglePassword,
    .input-group.input-error #toggleConfirmPassword {
        border-color: var(--accent-color);
    }


@media (max-width: 768px) {
    #passwordHelp {
        font-size: 11px;
    }

    #togglePassword, #toggleConfirmPassword {
        padding: 0 12px;
    }
}

#togglePassword:hover, #toggleConfirmPassword:hover {
    color: #6c757d !important; 
    background-color: #e9ecef !important; 
}
.form-check-input.input-validation-error {
    border-color: var(--accent-color);
}

.field-validation-error {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
