﻿/* Main container */
.login-wrapper {
    width: 100%;
    max-width: 470px;
    padding: 25px 18px;
    position: relative;
    z-index: 2;
}

.registration-wrapper {
    width: 100%;
    max-width: 470px;
    padding: 25px 18px;
    position: relative;
    z-index: 2;
}

/* Login card */
.login-card {
    position: relative;
    width: 100%;
    padding: 32px 32px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Top glow */
.login-card::before {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,170,255,0.8), transparent);
}

/* Logo */
.logo-container {
    margin: 0 auto 2px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.logo-container img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
}

/* Heading */
.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    color: #ffffff;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.58);
}

/* Error message */
.error-container {
    min-height: 0;
    margin-bottom: 25px;
    text-align: center;
    border-radius:5px;
}

.error-container:empty {
    display: none;
}

/* Input group */
.input-group-custom {
    position: relative;
    margin-bottom: 0px;
}

/* Icons */
.input-icon {
    position: absolute;
    left: 20px;
    top: 36%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.45);
    pointer-events: none;
    z-index: 3;
}

/* Inputs */
.txtDecorated,
.txtDecoratedP {
    width: 100% !important;
    height: 57px !important;
    padding: 0 48px 0 48px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(255,255,255,0.13) !important;
    background: rgba(5,14,28,0.72) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.txtDecorated::placeholder,
.txtDecoratedP::placeholder {
    color: rgba(255,255,255,0.42);
    opacity: 1;
}

.txtDecorated:focus,
.txtDecoratedP:focus {
    background: rgba(7,19,38,0.95) !important;
    border-color: rgba(0,157,255,0.75) !important;
    box-shadow: 0 0 0 3px rgba(0,145,255,0.10), 0 8px 25px rgba(0,0,0,0.18) !important;
}

.input-group-custom:focus-within .input-icon {
    color: #20a9ff;
}

/* Password eye */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 35%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    color: rgba(255,255,255,0.40);
    transition: color 0.2s ease;
    z-index: 5;
}

.password-toggle:hover {
    color: #20a9ff;
}

/* Register / Forgot password */
.account-links {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.58);
    line-height: 1.8;
}

.account-links a {
    color: #3ba9ff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.account-links a:hover {
    color: #76c8ff !important;
    text-decoration: underline !important;
}

.forgot-link {
    margin-top: 8px;
}

/* Bottom security text */
.security-note {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.32);
    letter-spacing: 0.2px;
}

/* Popup */
#dvMessagePopupOverlay {
    background: rgba(0,0,0,0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#dvMessagePopupBox {
    max-width: 430px;
    background: linear-gradient(145deg, #111c2d, #08111f);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.65);
}

/* Mobile */
@media (max-width: 520px) {
    body {
        align-items: flex-start;
    }

    .login-wrapper {
        padding: 25px 14px;
        margin-top: 0%;
    }

    .registration-wrapper {
        padding: 25px 14px;
        margin-top: 0%;
    }

    .login-card {
        padding: 32px 22px 28px;
        border-radius: 20px;
    }

    .logo-container img {
        width: 90px;
        height: 90px;
    }

    .login-title {
        font-size: 25px;
    }

    .login-subtitle {
        margin-bottom: 25px;
    }
}

.accept-container {
    width: 100%;
    margin: 0px 0 20px 0;
    text-align: left;
}

.accept-checkbox {
    display: inline-flex;
    align-items: flex-start;
    width: 100%;
}

.accept-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 10px 0 0;
    cursor: pointer;
}

.accept-checkbox label {
    color: #d9e3f0;
    font-size: 12.5px;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
}

.agreement-link {
    color: #39a9ff;
    text-decoration: none;
    font-weight: 600;
}

.agreement-link:hover {
    color: #6cc4ff;
    text-decoration: underline;
}