/* Modern Login Page Styles with Glassmorphism */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Main Container */
.all {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #7cb342 0%, #9e9e9e 50%, #e0e0e0 100%);
    padding: 20px;
    overflow: hidden;
}

/* Animated Background Orbs */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #81c784, #aed581);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ff8a65, #ffab91);
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #bdbdbd, #e0e0e0);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Login Panel */
.login_panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.head {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
    animation: logoRotate 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes logoRotate {
    0%, 100% {
        transform: perspective(400px) rotateY(0deg);
    }
    50% {
        transform: perspective(400px) rotateY(10deg);
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    stroke: white;
    position: relative;
    z-index: 1;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.head h1 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* Form Styling */
.login-form {
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-wrapper.focused .input-icon {
    color: white;
    transform: scale(1.1);
}

.input-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 52px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper input:focus,
.input-wrapper input.has-value {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Floating Labels */
.floating-label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
}

.input-wrapper.focused .floating-label,
.input-wrapper input:focus + .floating-label,
.input-wrapper input.has-value + .floating-label {
    top: -12px;
    left: 15px;
    font-size: 12px;
    color: white;
    background: linear-gradient(to bottom, transparent 50%, rgba(124, 179, 66, 0.5) 50%);
    font-weight: 500;
}

/* Password Toggle Button */
.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: white;
    transform: scale(1.1);
}

/* Recover Link */
.recover-link {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 2;
    padding: 8px;
}

.recover-link:hover {
    color: white;
    transform: scale(1.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 152, 0, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Footer */
.left-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 25px;
    line-height: 1.6;
}

.left-footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.left-footer a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.highlight {
    color: #ff9800;
    font-weight: 600;
}

/* Alert Messages */
.alertt {
    background: linear-gradient(135deg, #ef5350 0%, #e57373 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    animation: alertSlide 0.4s ease-out;
    box-shadow: 0 8px 24px rgba(239, 83, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 500;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
}

.alertt.success {
    background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
    box-shadow: 0 8px 24px rgba(102, 187, 106, 0.4);
}

.alertt i {
    margin-right: 8px;
    font-size: 18px;
}

.redt {
    color: #ffb74d;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Utility Classes */
.clear {
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .all {
        padding: 15px;
    }
    
    .login_panel {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .head h1 {
        font-size: 28px;
    }
    
    .logo {
        width: 75px;
        height: 75px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .all {
        padding: 10px;
    }
    
    .login_panel {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .head h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .logo {
        width: 65px;
        height: 65px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .input-wrapper input {
        padding: 16px 45px 16px 48px;
        font-size: 15px;
    }
    
    .input-icon {
        left: 16px;
        font-size: 16px;
    }
    
    .floating-label {
        left: 48px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .left-footer {
        font-size: 12px;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 360px) {
    .login_panel {
        padding: 20px 15px;
    }
    
    .head h1 {
        font-size: 22px;
    }
    
    .input-wrapper input {
        padding: 14px 40px 14px 45px;
        font-size: 14px;
    }
}

/* Hover effects for better interactivity */
@media (hover: hover) {
    .input-wrapper:hover input {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Styles are already dark, but can be adjusted if needed */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login_panel {
        border: 2px solid white;
    }
    
    .input-wrapper input {
        border-width: 3px;
    }
}
