/* Animated Mobile-Friendly Login login.css */
:root {
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --secondary-gradient: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
    --white: #ffffff;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.4, 1);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-gray);
    overflow: hidden;
}

p {
	color:#fafafa;
}

.login-container {
    display: block;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 1rem;
    box-sizing: border-box;
}
/* Pseudo-element for blurred background */
.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.baltana.com/files/wallpapers-5/Light-Background-HD-Wallpapers-16374.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.85);
    transform: scale(1.1); /* prevents visible edges after blur */
    z-index: 0;
}

/* Ensure the login box stays above the blurred background */
.login-box, 
.login-footer {
    position: relative;
    z-index: 1;
}
.login-box {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    width: calc(100% - 2rem);
    max-width: 380px;
    margin: auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    transform: scale(0.98);
    transition: var(--transition);
    overflow: hidden; /* Ensures child elements stay within bounds */
	opacity:0.7;
}

.login-box:hover {
    transform: scale(0.99);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.login-box img {
    width: 75px;
    height: auto;
    margin-bottom: 1.3rem;
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-box:hover img {
    transform: translateY(-3px);
}

.login-box h1 {
    color: var(--dark-gray);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.login-box h2 {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1.8rem;
    position: relative;
}

.login-box h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 1rem auto;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.login-box:hover h2:after {
    width: 70px;
    background: var(--secondary-gradient);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.92rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4361ee;
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
    transform: translateY(-1px);
}

.form-group input:valid {
    border-color: #e9ecef;
}

.form-group:focus-within label {
    color: #4361ee;
    transform: translateY(-2px);
}

/* Animated Button */
.btn-primary {
    width: 100%;
    padding: 1.05rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-gradient);
    color: var(--white);
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.5, 1.6, 0.4, 0.7);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.35);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* Ripple Effect */
.btn-primary:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.btn-primary:active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.login-footer {
    text-align: center;
    color: #6c757d;
    font-size: 0.78rem;
    padding: 0.8rem 1rem;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.alert-danger {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e53e3e;
    font-size: 0.88rem;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .login-box {
        padding: 1.6rem;
        border-radius: 14px;
    }
    
    .form-group input {
        padding: 0.85rem;
    }
    
    .btn-primary {
        padding: 1rem;
    }
}

@media (max-height: 600px) {
    .login-box {
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .login-footer {
        display: none;
    }
}
/* Slide to Login Button - Mobile Only */
@media (max-width: 768px) {
  .slide-container {
    width: 100%;
    margin: 1.5rem 0;
    position: relative;
  }
  
  .slide-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 25px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    touch-action: pan-y;
  }
  
  .slider {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: 2;
    transition: transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  .slide-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 50px;
    color: #666;
    font-weight: 500;
    z-index: 1;
    user-select: none;
  }
  
  .slide-btn.active .slider {
    transform: translateX(calc(100% - 50px));
    background: var(--success-color);
  }
  
  .slide-btn.success .slider {
    background: var(--success-color);
    transform: translateX(calc(100% - 50px)) scale(1.1);
  }
  
  .slide-btn.success .slide-text {
    color: white;
    font-weight: bold;
  }
}

/* Slide to Login Styles */
#slide-well {
    margin: 30px 0;
    position: relative;
}

#slider-container {
    width: 100%;
    height: 75px;
    position: relative;
}

#slider-track {
    width: 100%;
    height: 100%;
    background-color: #e5e5ea;
    border-radius: 45px;
    position: relative;
    overflow: hidden;
}

#slider-thumb {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, #007AFF, #00A0FF);
    border-radius: 43px;
    position: absolute;
    left: 2px;
    top: 6px;
    z-index: 2;
    cursor: pointer;
    touch-action: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

#slider-text {
    position: absolute;
    width: 100%;
    text-align: left;
    line-height: 80px;
    color: #8e8e93;
    font-size: 16px;
    font-weight: 500;
    z-index: 1;
    user-select: none;
}

/* Success state */
#slider-container.success #slider-thumb {
    background: linear-gradient(135deg, #34C759, #30D158);
    transform: translateX(calc(100% - 50px)) scale(1.05);
}

#slider-container.success #slider-text {
    color: #34C759;
    font-weight: 600;
}

/* Animation for the text */
@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#slider-text {
    animation: shimmer 2s infinite ease-in-out;
}

/* Alert styles */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: rgba(255,59,48,0.1);
    color: #FF3B30;
    border: 1px solid rgba(255,59,48,0.2);
}

/* Footer styles */
.login-footer {
    margin-top: 40px;
    color: #8e8e93;
    font-size: 12px;
    line-height: 1.5;
}

#well {
	padding: 14px 20px 20px 20px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	
	background: -moz-linear-gradient(top, #010101, #181818);
	background: -webkit-gradient(linear,left top,left bottom,color-stop(0, #010101),color-stop(1, #181818));
	
	border: 2px solid #454545; 
	overflow: hidden; 
	
	-webkit-user-select: none;
}
@-webkit-keyframes slidetounlock {
	0% {
		background-position: -720px 0;
	}
	100%{
		background-position: 720px 0;
	}
}

/* Add to login.css */
#slider-thumb {
    /* existing styles */
    transition: transform 0.2s ease, background 0.3s ease;
}

#slider-container.success {
    transition: all 0.3s ease;
}

/* Vibration animation */
@keyframes vibrate {
    0% { transform: translateX(var(--slide-distance)) scale(1); }
    25% { transform: translateX(var(--slide-distance)) scale(1.05); }
    50% { transform: translateX(var(--slide-distance)) scale(1); }
    75% { transform: translateX(var(--slide-distance)) scale(1.03); }
    100% { transform: translateX(var(--slide-distance)) scale(1); }
}

.vibrate {
    animation: vibrate 0.3s linear;
}

/* Success pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.success-pulse {
    animation: pulse 1s infinite;
}
/* Add to your CSS file */
.checkmark {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    display: none;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #34C759;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');