﻿
/* Enhanced Account Pages CSS - Login & Register */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;.login-box
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*    .login-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    }*/

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7500%) hue-rotate(210deg) brightness(80%) contrast(100%);
}

    .login-logo:hover {
        transform: scale(1.05);
    }

.login-form .form-group {
    margin-bottom: 1.4rem;
    position: relative;
}
.login-form > .login-button {
    text-align: center;
    /* if you want to center the button itself: */
    display: block;
    margin: 1em auto;
}
/* Improved Label Styles */
.login-form label {
    display: block;
    margin-bottom: 0.6rem;
    color: #2d3748;
    font-weight: 650;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.login-form .form-group:hover label {
    color: #003399;
}

/* Improved Input Styles */
.login-form .form-control {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

    .login-form .form-control:hover {
        border-color: #cbd5e0;
        background-color: #f1f5f9;
    }

    .login-form .form-control:focus {
        outline: none;
        border-color: #003399;
        box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.1);
        background-color: white;
    }

    .login-form .form-control::placeholder {
        color: #a0aec0;
        font-size: 0.95rem;
        opacity: 0.8;
    }

/* Improved Remember Me Styles */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
}

    .remember-me label {
        margin: 0;
        display: flex;
        align-items: center;
        cursor: pointer;
        font-weight: 500;
        text-transform: none;
        letter-spacing: normal;
        color: #4a5568;
        font-size: 0.85rem;
        transition: color 0.2s ease;
    }

        .remember-me label:hover {
            color: #003399;
        }

    .remember-me input[type="checkbox"] {
        margin-right: 0.75rem;
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid #e2e8f0;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: #f8fafc;
        transition: all 0.2s ease;
    }

        .remember-me input[type="checkbox"]:checked {
            background-color: #003399;
            border-color: #003399;
        }

            .remember-me input[type="checkbox"]:checked::after {
                content: '✓';
                position: absolute;
                color: white;
                font-size: 0.875rem;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

        .remember-me input[type="checkbox"]:hover {
            border-color: #003399;
            box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
        }

/* Login Button */
.login-button {
    width: 90%;
    padding: 0.7rem;
    background-color: #003399;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 51, 153, 0.15);
}

    .login-button:hover {
        background-color: #002280;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 51, 153, 0.2);
    }

    .login-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 51, 153, 0.1);
    }

    .login-button:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100% );
        transition: left 0.7s ease;
    }

    .login-button:hover:before {
        left: 100%;
    }

/* Improved Link Styles */
.login-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

    .login-links a {
        color: #003399;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
        padding: 0.2rem 0;
    }

        .login-links a::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: #003399;
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease;
        }

        .login-links a:hover {
            color: #002266;
        }

            .login-links a:hover::after {
                transform: scaleX(1);
                transform-origin: bottom left;
            }

/* Error Message Styles */
.text-danger {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
    padding-left: 0;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-danger ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.text-danger li {
    list-style-type: none;
    padding: 0.3rem 0;
}

/* Requirements list styling */
.requirements-list {
    margin-top: 0.5em;
    font-size: 0.85em;
    color: #a00;
    padding-left: 1.2em;
    list-style-type: none;
    transition: all 0.3s ease;
}

    .requirements-list li {
        margin-bottom: 0.3em;
        position: relative;
        padding-left: 1.2em;
        transition: all 0.2s ease;
    }

        .requirements-list li:before {
            content: "✕";
            position: absolute;
            left: 0;
            color: #e53e3e;
        }

        .requirements-list li.met {
            display: none;
        }

/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .loading-animation.visible {
        opacity: 1;
        visibility: visible;
    }

.loading-active {
    overflow: hidden;
}

/* Styling for the user list */
#userList {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    #userList::-webkit-scrollbar {
        width: 8px;
    }

    #userList::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 8px;
    }

    #userList::-webkit-scrollbar-thumb {
        background-color: #cbd5e0;
        border-radius: 8px;
    }

        #userList::-webkit-scrollbar-thumb:hover {
            background-color: #a0aec0;
        }

    #userList li {
        padding: 12px 15px;
        cursor: pointer;
        font-size: 14px;
        border-bottom: 1px solid #e2e8f0;
        transition: all 0.2s ease;
    }

        #userList li:hover {
            background-color: #edf2f7;
        }

        #userList li.active {
            background-color: #003399;
            color: white;
        }

        #userList li:last-child {
            border-bottom: none;
        }

/* Verification group styling */
.verification-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-input {
    display: none; /* Initially hidden */
}

.verify-btn {
    width: 34%;
    padding: 8px;
    background-color: #003399;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 51, 153, 0.15);
}

    .verify-btn:hover:not(:disabled) {
        background-color: #002280;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 51, 153, 0.2);
    }

    .verify-btn:disabled {
        background-color: #a0aec0;
        cursor: not-allowed;
        opacity: 0.7;
    }

/* Disable submit button styling */
.login-button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.7;
    transform: translateY(0);
    box-shadow: none;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        max-width: 95%;
        padding: 2rem;
    }

    .login-logo {
        max-width: 180px;
    }

    .login-form .form-control {
        font-size: 0.95rem;
        padding: 0.9rem 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-box {
        max-width: 100%;
        padding: 1.5rem;
    }

    .login-logo {
        max-width: 140px;
    }

    .login-form .form-control {
        font-size: 0.9rem;
        padding: 0.8rem 0.8rem;
    }

    .login-form label {
        font-size: 0.8rem;
    }

    .login-button {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .login-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Loading Animation Spinner */
.loading-animation:after {
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003399;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/*///////////////////////////////////////SMS SEND PART /////////////////////////////////////////////////*/

.container {
    width: 500px;
}

.password-wrapper {
    position: relative;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* generic icon inside the input */




/* toggle-button sits on the right of the password field */
.toggle-button {
    position: absolute;
    top: 50%;
    right: 16px; /* ← distance from right edge */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* container for each input+icon */
.input-wrapper,
.password-wrapper {
    position: relative;
}

/* ensure the input text doesn't overlap the left icon */
.input-with-icon {
    padding-left: 40px;
}

/* unify icon sizing */
.input-icon,
.eye-icon {
    width: 20px;
    height: 20px;
    fill: #adafb6;
}
/* ---- Hide browser-native password reveal/clear icons ---- */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* За WebKit-базирани (Chrome, Safari) */
input[type="password"]::-webkit-textfield-decoration-button {
    display: none !important;
}

/* Отстрани и стандардниот рамка/appearance ако треба */
input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
}

.eurora-tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 25px;
    margin-top: -10px;
}

    .eurora-tabs .tab {
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        padding-bottom: 6px;
        color: #0a2a5c;
        opacity: 0.6;
        border-bottom: 3px solid transparent;
        transition: all 0.25s ease;
    }

        .eurora-tabs .tab.active {
            opacity: 1;
            border-bottom: 3px solid #0a3ddf;
        }


    .eurora-tabs .tab {
        transition: all 0.3s ease;
    }

        .eurora-tabs .tab.active {
            transform: scale(1.07);
            color: #003399;
        }
.registration-form {
    margin-top: 25px;
    padding-top: 10px;
    border-top: 1px solid #d5d5d5;
    animation: fadeIn 0.4s ease;
}

.reg-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #003399;
}


/* ---------------------- REGISTRATION FORM IMPROVED ---------------------- */

.registration-form {
    margin-top: 10px;
    padding: 15px 10px 5px 10px;
    border-top: 1px solid #dcdcdc;
    animation: slideFadeIn 0.35s ease;
}

/* two-column layout */
.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

    /* make email full row */
    .registration-grid .full-row {
        grid-column: span 2;
    }

.reg-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #003399;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* Smooth, modern animation */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input styling reused from login */
.registration-form .form-group label {
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.registration-form .form-control {
    padding: .8rem;
}

/* Full-width buttons */
.registration-form .login-button {
    width: 100%;
}

/* Back button styling */
#backToLogin {
    background: #6b7280 !important;
}

    #backToLogin:hover {
        background: #4b5563 !important;
    }

/* Mobile layout */
@media (max-width: 480px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }
}




/* ---------------------- REGISTRATION FORM IMPROVED ---------------------- */

.registration-form {
    margin-top: 10px;
    padding: 15px 10px 5px 10px;
    border-top: 1px solid #dcdcdc;
    animation: slideFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* two-column layout */
.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

    /* make email full row */
    .registration-grid .full-row {
        grid-column: span 2;
    }

.reg-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #003399;
    margin-bottom: 20px;
    margin-top: 5px;
    animation: titlePulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced animations */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titlePulse {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger animation for form groups */
.registration-form .form-group {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

    .registration-form .form-group:nth-child(1) {
        animation-delay: 0.05s;
    }

    .registration-form .form-group:nth-child(2) {
        animation-delay: 0.1s;
    }

    .registration-form .form-group:nth-child(3) {
        animation-delay: 0.15s;
    }

    .registration-form .form-group:nth-child(4) {
        animation-delay: 0.2s;
    }

    .registration-form .form-group:nth-child(5) {
        animation-delay: 0.25s;
    }

    .registration-form .form-group:nth-child(6) {
        animation-delay: 0.3s;
    }

    .registration-form .form-group:nth-child(7) {
        animation-delay: 0.35s;
    }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input styling with enhanced animations */
.registration-form .form-group label {
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.registration-form .form-control {
    padding: .8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Focus animations for registration inputs */
.registration-form .form-group:focus-within label {
    color: #003399;
    transform: translateX(3px);
}

.registration-form .form-control:focus {
    transform: scale(1.01);
}

/* Floating label effect on input interaction */
.registration-form .form-group {
    position: relative;
}

.registration-form .form-control:focus,
.registration-form .form-control:not(:placeholder-shown) {
/*    padding-top: 1.2rem;
    padding-bottom: 0.4rem;*/
}

.registration-form .form-group:has(.form-control:focus) label,
.registration-form .form-group:has(.form-control:not(:placeholder-shown)) label {
    font-size: 0.7rem;
    transform: translateY(-2px);
}

/* Code box reveal animation */
#codeBox {
    animation: expandDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: scaleY(0);
        margin-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
        transform: scaleY(1);
    }
}

/* Send code button pulse on hover */
#sendCodeBtn {
    position: relative;
    overflow: hidden;
}

    #sendCodeBtn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    #sendCodeBtn:hover::before {
        width: 300px;
        height: 300px;
    }

/* Success state animation */
.input-success {
    animation: successPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2);
    }
}

/* Error shake animation */
.input-error {
    animation: errorShake 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* Full-width buttons with enhanced animation */
.registration-form .login-button {
    width: 100%;
    animation: buttonSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back button styling */
#backToLogin {
    background: #6b7280 !important;
    animation-delay: 0.45s !important;
}

    #backToLogin:hover {
        background: #4b5563 !important;
        transform: translateY(-2px);
    }

/* Create account button special effect */
#createAccountBtn {
    margin-top:1rem;
    position: relative;
    overflow: hidden;
}

    #createAccountBtn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.8s, height 0.8s;
    }

    #createAccountBtn:hover::after {
        width: 400px;
        height: 400px;
    }

/* Mobile layout */
@media (max-width: 480px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }


    .registration-form .form-group {
        animation-delay: 0s !important;
    }
    .form-group {
        grid-column: span 2;
    }
   

}


.disabled-link {
    pointer-events: none; /* го оневозможува кликањето */
    color: grey; /* изгледа како disabled */
    opacity: 0.6;
    text-decoration: none;
    cursor: not-allowed; /* покажува дека е неактивно */
}
.tab.disabled {
    pointer-events: none; /* го оневозможува кликањето */
    opacity: 0.5; /* визуелно како disabled */
    cursor: not-allowed; /* покажува дека е неактивно */
}
#codeBox {
    margin-top: 10px;
    padding: 12px;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    border-radius: 6px;
}
.phone-help {
    display: block;
    line-height: 1.45;
    margin-top: 4px;
}
