/* Modern Login Page Styles */

/* Override AdminLTE styles for login page */
body.login-page-modern {
    background: transparent !important;
    overflow-x: hidden;
}

body.login-page-modern .hold-transition {
    background: transparent !important;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modern Background with Gradient */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: 10%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Header Section */
.login-header {
    position: relative;
    z-index: 10;
    padding: 30px 40px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px;
    object-fit: contain;
}

.header-text {
    color: white;
}

.app-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.app-address {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Login Container */
.login-container-modern {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.login-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 35px 30px;
    text-align: center;
    color: white;
}

.welcome-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-subtitle {
    margin: 10px 0 0 0;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.login-card-body {
    padding: 40px 35px;
}

/* Alert Messages */
.alert-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    display: none;
}

.alert-message.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-message.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-message.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form Styles */
.login-form {
    margin: 0;
}

.form-group-modern {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-icon {
    color: #667eea;
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input-modern::placeholder {
    color: #999;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.password-toggle:hover {
    color: #667eea;
}

.help-block {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.form-group-modern.has-error .form-input-modern {
    border-color: #dc3545;
}

.form-group-modern.has-error .form-input-modern:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Checkbox Modern */
.form-options {
    margin-bottom: 30px;
}

.checkbox-modern {
    display: flex;
    align-items: center;
}

.checkbox-modern input[type="checkbox"] {
    display: none;
}

.checkbox-modern label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-modern input[type="checkbox"]:checked + label .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-modern input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Submit Button */
.form-submit {
    margin-top: 10px;
}

.btn-login-modern {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-login-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.btn-login-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-header {
        padding: 20px;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    .app-name {
        font-size: 20px;
    }

    .app-address {
        font-size: 12px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 20px;
    }

    .login-card-header {
        padding: 30px 25px 25px;
    }

    .welcome-title {
        font-size: 26px;
    }

    .login-card-body {
        padding: 30px 25px;
    }

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container-modern {
        padding: 20px 15px;
    }

    .login-card-header {
        padding: 25px 20px 20px;
    }

    .login-card-body {
        padding: 25px 20px;
    }

    .login-card-footer {
        padding: 15px 20px 20px;
    }

    .developer-credit {
        font-size: 12px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 13px;
    }
}

/* Additional Animations */
.login-card {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Developer Credit Footer */
.login-card-footer {
    padding: 20px 35px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
}

.developer-credit {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.developer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.developer-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.developer-link:active {
    color: #667eea;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

