/* Education Theme Login Page Styles */

/* Body and Container */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
}

/* Main Login Box */
#body_box_Login {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: none;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.education-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.system-title {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0 5px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.system-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Error Message */
.error-container {
    padding: 15px 20px 0 20px;
    min-height: 40px;
}

.error-message {
    display: block;
    padding: 12px 15px;
    background-color: #fee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Login Form Wrapper */
.login-form-wrapper {
    padding: 30px 25px;
}

.login-form-box {
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

/* Form Header */
.login-form-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    border: none;
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-icon {
    font-size: 20px;
}

/* Form Content */
.login-form-content {
    padding: 25px 20px;
}

.login-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.login-table tr {
    margin-bottom: 15px;
}

.label-cell {
    text-align: right;
    padding: 12px 8px 12px 0;
    vertical-align: middle;
    width: 35%;
}

.separator-cell {
    text-align: center;
    padding: 12px 5px;
    vertical-align: middle;
    width: 5%;
    color: #667eea;
    font-weight: bold;
}

.input-cell {
    padding: 12px 0 12px 8px;
    vertical-align: middle;
    width: 60%;
}

/* Labels */
.labelForTag {
    display: inline-block;
}

.LabelBl {
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4a5568;
    font-weight: 600;
}

/* Input Fields */
.login-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #2d3748 !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.login-input:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background-color: #f7fafc !important;
}

.login-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* Buttons */
.button-container {
    margin-top: 25px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.riosButton {
    min-width: 120px !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    background-image: none !important;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-cancel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4) !important;
}

.btn-cancel:active {
    transform: translateY(0);
}

/* Footer */
.Outer_Box_Login {
    padding: 20px;
    text-align: center;
    background: linear-gradient(to top, #f8f9ff 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
}

.copyright-text {
    margin: 0;
    font-size: 12px;
    color: #718096;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.copyright-icon {
    margin-right: 5px;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-container {
        padding: 10px;
    }
    
    .system-title {
        font-size: 22px;
    }
    
    .login-form-wrapper {
        padding: 20px 15px;
    }
    
    .login-table {
        display: block;
    }
    
    .login-table tr {
        display: block;
        margin-bottom: 20px;
    }
    
    .label-cell,
    .separator-cell,
    .input-cell {
        display: block;
        width: 100%;
        text-align: left;
        padding: 5px 0;
    }
    
    .separator-cell {
        display: none;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .riosButton {
        width: 100% !important;
    }
}

@media (max-width: 400px) {
    .system-title {
        font-size: 18px;
    }
    
    .education-icon {
        font-size: 36px;
    }
}

