/* Login Page Styles - Modern, Professional Design */

/* Body and Background */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}



/* Main Container */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
    position: relative;
    z-index: 1;
}

/* Left Panel - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #055865 0%, #33CBD1 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.branding-content {
    position: relative;
    z-index: 2;
    max-width: 350px;
}

.login-branding h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-branding p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}



/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 10%;
    animation-delay: 4s;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-20px) translateX(-5px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}

/* Pulse Animation for Logo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s infinite;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Right Panel - Login Form Enhancement */
.login-form-container {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.login-form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #055865, #33CBD1);
}

.login-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-form-container .subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form Styling */
#login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Submit Button Enhancement */
.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #055865 0%, #33CBD1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(5, 88, 101, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(5, 88, 101, 0.3);
}

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

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner Enhancement */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

.submit-btn.loading .spinner {
    display: inline-block;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

/* Message Display */
#message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

#message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

#message.hidden {
    display: none;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .login-branding {
        padding: 2rem 1.5rem;
    }
    
    .login-branding h1 {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 2rem 1.5rem;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .circle-1, .circle-2, .circle-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .login-form-container {
        padding: 1.5rem 1rem;
    }
    
    .login-branding {
        padding: 1.5rem 1rem;
    }
    
    .login-branding h1 {
        font-size: 1.75rem;
    }
    
    .login-form-container h2 {
        font-size: 1.5rem;
    }
}

/* Password visibility toggle */
.form-group.password-toggle .relative {
    position: relative;
}

.form-group.password-toggle .toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group.password-toggle .toggle-btn:hover {
    color: #374151;
}

.form-group.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.form-group.password-toggle .eye-icon path {
    transition: stroke 0.2s;
}

.form-group.password-toggle .toggle-btn:hover .eye-icon path {
    stroke: #374151;
}

/* Input focus effects */
.form-control:focus ~ .input-highlight,
.form-control:valid ~ .input-highlight {
    transform: scaleX(1);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #055865, #33CBD1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

/* Social login buttons (future enhancement) */
.social-login {
    margin-top: 1.5rem;
    text-align: center;
}

.social-login .divider {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.social-login .divider::before,
.social-login .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.social-login .divider span {
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Remember me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.remember-me label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Form Group Enhancement */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

/* Form Control Enhancement */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Input highlight effect */
.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #055865, #33CBD1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
    z-index: 2;
}

.form-control:focus ~ .input-highlight,
.form-control:valid ~ .input-highlight {
    transform: scaleX(1);
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Enhancements */

/* Form field focus glow effect */
.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* Label animation on focus */
.form-group:focus-within label {
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Input highlight effect */
.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #055865, #33CBD1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
    z-index: 2;
}

.form-control:focus ~ .input-highlight,
.form-control:valid ~ .input-highlight {
    transform: scaleX(1);
}

/* Remember me checkbox styling */
.remember-me input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.remember-me input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.remember-me input[type="checkbox"]:hover {
    border-color: #9ca3af;
}

.remember-me label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* Forgot password link enhancement */
.forgot-password a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.forgot-password a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

/* Footer link enhancement */
.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.login-footer a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.login-footer a:hover::after {
    width: 100%;
}

/* Form submission button enhancement */
.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #055865 0%, #33CBD1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(5, 88, 101, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(5, 88, 101, 0.3);
}

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

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner enhancement */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

.submit-btn.loading .spinner {
    display: inline-block;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

/* Message display enhancement */
#message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

#message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

#message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#message.success::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

#message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

#message.error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

#message.hidden {
    display: none;
}