﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #11150f;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.container {
            width: 100%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-sizing: border-box;
        }

.header {
    text-align: center;
    margin-bottom: 40px;
}

    .header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .header p {
        font-size: 1.1rem;
        color: #a0a0a0;
        line-height: 1.6;
    }

.recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.word-box {
    background: #222223;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .word-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .word-box:not(.visible) {
        background: rgba(34, 34, 35, 0.5);
        border-color: rgba(255, 255, 255, 0.05);
    }

        .word-box:not(.visible)::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            animation: shimmer 2s infinite;
        }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.word-box span {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.word-box:not(.visible) span {
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.confirm-input {
    background: #222223;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 1rem;
    width: 100%;
    margin-left: 8px;
    transition: all 0.3s ease;
}

    .confirm-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 16px rgba(102, 126, 234, 0.3);
    }


/* Container styling */
#resetPasswordSection {
    background-color: #1c1c1e;
    padding: 30px 20px;
    border-radius: 12px;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    color: white;
    width:100%;
}

/* Input fields */
.changepass-input {
    background: #222223;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 1rem;
    width: 100%;
    margin: 10px 0;
    transition: all 0.3s ease;
    display: block;
}

.changepass-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 16px rgba(102, 126, 234, 0.3);
}

/* Button styling */
#resetPasswordSection .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

#resetPasswordSection .btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Center alignment */
#resetPasswordSection .text-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #resetPasswordSection {
        padding: 20px 15px;
    }

    .changepass-input {
        font-size: 0.95rem;
    }

    #resetPasswordSection .btn {
        width: 100%;
        font-size: 1rem;
    }
}


.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.6);
    }

.btn-secondary {
    background: #222223;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .btn-secondary:hover {
        background: rgba(34, 34, 35, 0.8);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

.hidden {
    display: none;
}

.warning-box {
    background: #222223;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

    .warning-box .icon {
        font-size: 2rem;
        margin-bottom: 10px;
        color: #ffc107;
    }

    .warning-box h3 {
        color: #ffc107;
        margin-bottom: 10px;
    }

    .warning-box p {
        color: #e0e0e0;
        line-height: 1.5;
    }

.success-message {
    background: #222223;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #28a745;
}

.error-input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 16px rgba(220, 53, 69, 0.3) !important;
}

.success-input {
    border-color: #28a745 !important;
    box-shadow: 0 0 16px rgba(40, 167, 69, 0.3) !important;
}

@media (max-width: 768px) {
    .recovery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .word-box {
        padding: 16px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}




.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.modal {
    background: #222223;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.modal-success .modal-icon {
    color: #28a745;
    animation: bounce 0.6s ease-in-out;
}

.modal-error .modal-icon {
    color: #dc3545;
    animation: shake 0.6s ease-in-out;
}

.modal-warning .modal-icon {
    color: #ffc107;
    animation: pulse 0.6s ease-in-out;
}

.modal-info .modal-icon {
    color: #17a2b8;
    animation: pulse 0.6s ease-in-out;
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.modal p {
    color: #a0a0a0;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-size: 0.95rem;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .modal-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

.modal-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .modal-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

.modal-btn-success {
    background: #28a745;
    color: white;
}

    .modal-btn-success:hover {
        background: #218838;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    }

.modal-btn-danger {
    background: #dc3545;
    color: white;
}

    .modal-btn-danger:hover {
        background: #c82333;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    }

.modal-btn-warning {
    background: #ffc107;
    color: #212529;
}

    .modal-btn-warning:hover {
        background: #e0a800;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    }


.form-control {
    background: #222223;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
}

    .form-control:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 16px rgba(102, 126, 234, 0.3);
    }

    .form-control::placeholder {
        color: #a0a0a0;
    }

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 30px 20px;
        margin: 20px;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}


.demo-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.demo-btn {
    background: #222223;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .demo-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }


.text-center{
    text-align:center
}


.forgontpassword-content h2, h3{
    margin: 5px 0px 5px 0px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 1rem;
}

#registrationSection {
    background-color: #1c1c1e;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

    #registrationSection h3 {
        font-size: 1.8rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    #registrationSection p {
        text-align: center;
        color: #a0a0a0;
        margin-bottom: 30px;
        line-height: 1.6;
        font-size: 1rem;
    }


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
        max-width: 100%;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 40px;
    }

    #registrationSection {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 16px;
    }

        #registrationSection h3 {
            font-size: 1.5rem;
        }

        #registrationSection p {
            font-size: 0.95rem;
        }

    .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        min-width: unset;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

.mt-10{
    margin-top:10px;
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
        max-width: 100%;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 40px;
    }

    #registrationSection {
        padding: 25px 15px;
    }

        #registrationSection h3 {
            font-size: 1.3rem;
        }

    .form-control {
        padding: 10px 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

.form-control:focus {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .form-control:focus {
        transform: none; 
    }
}

.forgontpassword-content{
    max-width:700px;
    width:100%;
}