/* 
    KrishiNex HRM - Premium Login Styles
    Focus: Glassmorphism, Vibrancy, and Modern UX
*/

body {
    background: linear-gradient(135deg, #1b8fe0 0%, #3cb71a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    overflow: hidden;
}

/* Background Animated Shapes */
.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Login Container */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header img {
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #3cb71a 0%, #1b8fe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
    margin-top: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

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

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 3rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3cb71a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(60, 183, 26, 0.1);
}

.input-wrapper input:focus + svg {
    color: #3cb71a;
}

/* Button Styles */
.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3cb71a 0%, #1b8fe0 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(60, 183, 26, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(60, 183, 26, 0.4);
    filter: brightness(1.05);
}

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

/* Error Messages */
.error-msg {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 1.5rem;
    border: 1px solid #fee2e2;
    text-align: center;
}

/* Footer Links */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 13px;
    color: #64748b;
}

.login-footer a {
    color: #1b8fe0;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
}
