* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--site-footer-bg-color) 100%);
    position: relative;
}

div#wrapwrap {
    background: rgb(202, 202, 202) !important;
}

.background-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: 
        radial-gradient(circle at 20% 80%, rgba(91, 193, 172, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(89, 112, 129, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(68, 82, 93, 0.2) 0%, transparent 50%); */
    z-index: 1;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

.floating-element:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 5%;
    animation-delay: 3s;
}

.floating-element:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 60%;
    right: 5%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(255, 255, 255, 0.05);
    top: 15%;
    right: 25%;
    animation: rotate 8s linear infinite;
}

.square {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    top: 70%;
    left: 15%;
    transform: rotate(45deg);
    animation: pulse 4s ease-in-out infinite;
}

.hexagon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.06);
    top: 25%;
    left: 70%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: bounce 3s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.2); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--custom-btn-bg-hover-color), var(--secondary-color));
    border-radius: 25px 25px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--custom-btn-bg-hover-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(91, 193, 172, 0.3);
}

.login-icon i {
    font-size: 2rem;
    color: var(--white-color);
}

.login-title {
    color: var(--dark-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--p-color);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 18px 25px;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 193, 172, 0.15);
    background: var(--white-color);
    transform: translateY(-2px);
}

.form-label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--p-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.input-icon:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-strength.show {
    opacity: 1;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #ff4757; width: 33%; }
.strength-medium { background: #ffa502; width: 66%; }
.strength-strong { background: var(--primary-color); width: 100%; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--p-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--custom-btn-bg-hover-color);
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--custom-btn-bg-hover-color) 100%);
    border: none;
    border-radius: 15px;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white-color);
    width: 100%;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(91, 193, 172, 0.4);
    background: linear-gradient(135deg, var(--custom-btn-bg-hover-color) 0%, var(--primary-color) 100%);
}

.btn-login:active {
    transform: translateY(-1px);
}

.loading-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid var(--white-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.signup-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.signup-text {
    color: var(--p-color);
    font-size: 1rem;
    margin-bottom: 0;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.signup-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.signup-link:hover::after {
    width: 100%;
    left: 0;
}

.signup-link:hover {
    color: var(--custom-btn-bg-hover-color);
}

@media (max-width: 576px) {
    .login-card {
        padding: 40px 30px;
        margin: 15px;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-icon i {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}