﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50, #3498db);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.8s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.particles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.register-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.register-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin: 20px;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

    .logo i {
        font-size: 40px;
        margin-bottom: 10px;
        color: #3498db;
    }

    .logo h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .logo p {
        font-size: 14px;
        color: #7f8c8d;
    }

.input-group {
    position: relative;
    margin-bottom: 35px;
}

    .input-group label {
        display: block;
        color: #2c3e50;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
    }

    .input-group .left-icon {
        position: absolute;
        left: 15px;
        top: 38px;
        color: #7f8c8d;
    }

    .input-group input {
        width: 100%;
        padding: 12px 40px 12px 40px;
        border: 1px solid #ddd;
        background-color: #fff;
        border-radius: 8px;
        color: #2c3e50;
        font-size: 14px;
        transition: all 0.3s;
    }

        .input-group input:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

    .input-group .validation-icon {
        position: absolute;
        right: 15px;
        top: 38px;
        font-size: 16px;
    }

    .input-group .fa-check {
        color: #27ae60;
        display: none;
    }

    .input-group .fa-times {
        color: #e74c3c;
        display: none;
    }

    .input-group .error-tooltip {
        position: absolute;
        background-color: #e74c3c;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        top: calc(100% + 5px);
        right: 0;
        display: none;
        z-index: 100;
        width: auto;
        white-space: nowrap;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

        .input-group .error-tooltip::before {
            content: "";
            position: absolute;
            bottom: 100%;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 6px solid #e74c3c;
        }

.password-strength {
    margin-top: 5px;
    height: 5px;
    border-radius: 5px;
    background-color: #ecf0f1;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.password-strength-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    text-align: left;
}

.register-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .register-btn:hover {
        background: linear-gradient(135deg, #2980b9, #3498db);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

    .login-link a {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.form-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    font-size: 12px;
    color: #95a5a6;
    text-align: center;
}


.explosion-particle {
    position: absolute;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    width: 8px;
    height: 8px;
    pointer-events: none;
    opacity: 0;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.exploding {
    animation: explodeForm 0.8s forwards;
    overflow: hidden;
}

@keyframes explodeForm {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }

    70% {
        transform: scale(1.2);
        opacity: 0.7;
        filter: blur(2px);
    }

    100% {
        transform: scale(0);
        opacity: 0;
        filter: blur(10px);
    }
}


body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

    body::-webkit-scrollbar-thumb:hover {
        background: #2980b9;
    }

@media (max-height: 700px) {
    body {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 20px;
        width: 100%;
        margin: 10px;
    }

    .input-group input {
        padding: 12px 35px 12px 35px;
    }

    .input-group .left-icon {
        left: 12px;
    }

    .input-group .validation-icon {
        right: 12px;
    }

    .input-group .error-tooltip {
        white-space: normal;
        width: 100%;
        text-align: center;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #e6e6e6;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.5;
    text-align: center;
}

.countdown {
    display: inline-block;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.verification-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.verification-code {
    flex: 1;
    height: 50px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #2c3e50;
    transition: all 0.3s;
    width: 65px;
    text-transform: uppercase;
}

.verification-code:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    transform: scale(1.05);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.resend-btn, .verify-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

.resend-btn {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.resend-btn:not(.disabled):hover {
    background-color: #dde4e6;
    transform: translateY(-2px);
}

.resend-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verify-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.verify-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
    }

    .verification-code {
        height: 45px;
        font-size: 18px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .resend-btn, .verify-btn {
        width: 100%;
    }
}