/* /home/a1appbuilders/public_html/addons/email-subscribers/assets/css/login.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix included footer appearing at top */
footer, .main-footer, .animate-footer {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0;
    width: 100%;
    z-index: 500;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E3F2FD;
    overflow-x: hidden;
    position: relative;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #FFD54F, #FFC107);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #81C784, #66BB6A);
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #4FC3F7, #29B6F6);
    bottom: 20%;
    left: -100px;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-50px, 50px) rotate(240deg);
    }
}

.login-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

.login-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-container.fade-in {
    transform: scale(1);
    opacity: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(66, 165, 245, 0.4);
    animation: pulse 2s infinite;
}

.icon-circle i {
    font-size: 35px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(66, 165, 245, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(66, 165, 245, 0.6);
    }
}

.login-header h2 {
    color: #1976D2;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 28px;
}

.login-header p {
    font-size: 15px;
    color: #757575;
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    animation: shake 0.5s;
    background: #f8d7da;
    color: #721c24;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.mb-3 {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.form-label i {
    margin-right: 6px;
    color: #42A5F5;
}

.form-control {
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

.form-control:focus {
    border-color: #42A5F5;
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.1);
    outline: none;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.toggle-password {
    border: 2px solid #E0E0E0;
    border-left: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 12px 16px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-password:hover {
    background: #F5F5F5;
}

.toggle-password:focus {
    border-color: #42A5F5;
    box-shadow: none;
    outline: none;
}

.input-group:focus-within .form-control,
.input-group:focus-within .toggle-password {
    border-color: #42A5F5;
}

.input-group:focus-within .toggle-password {
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.1);
}

small.text-muted {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9E9E9E;
}

.btn-login {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    border: none;
    padding: 14px 20px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(66, 165, 245, 0.4);
    width: 100%;
    cursor: pointer;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #E0E0E0;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #9E9E9E;
    font-size: 13px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.demo-box {
    background: linear-gradient(135deg, #F5F5F5, #FAFAFA);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #E8E8E8;
}

.demo-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #616161;
    font-size: 14px;
    word-break: break-all;
}

.demo-item:first-child {
    padding-top: 0;
}

.demo-item:last-child {
    padding-bottom: 0;
}

.demo-item i {
    width: 30px;
    min-width: 30px;
    color: #42A5F5;
    font-size: 16px;
}

.demo-item span {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

@media (max-width: 768px) {
    .login-container {
        padding: 45px 35px;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .icon-circle i {
        font-size: 30px;
    }
    
    .login-header h2 {
        font-size: 26px;
    }
    
    .shape {
        filter: blur(70px);
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 0 15px;
    }
    
    .login-container {
        padding: 40px 25px;
    }
    
    .icon-circle {
        width: 65px;
        height: 65px;
    }
    
    .icon-circle i {
        font-size: 28px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-header p {
        font-size: 14px;
    }
    
    .form-control,
    .toggle-password {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .demo-box {
        padding: 15px;
    }
    
    .demo-item {
        font-size: 13px;
    }
    
    .shape {
        filter: blur(60px);
    }
    
    .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2 {
        width: 350px;
        height: 350px;
    }
    
    .shape-3 {
        width: 250px;
        height: 250px;
    }
    
    .shape-4 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 375px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 26px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
}

@media (max-height: 700px) {
    .login-container {
        padding: 30px 35px;
    }
    
    .icon-circle {
        width: 65px;
        height: 65px;
        margin-bottom: 15px;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .divider {
        margin: 20px 0 15px;
    }
}