/* instructor_login.css */

.instructor-login-container {
    min-height: calc(100vh - 200px); /* Account for navbar and footer */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    margin: 2rem 0; /* Add space from navbar and footer */
    position: relative;
    overflow: hidden;
}

.instructor-login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
}

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

.instructor-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.login-form {
    margin-bottom: 2rem;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #a0aec0;
}

.instructor-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.instructor-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

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

.btn-icon {
    font-size: 1.2rem;
}

.login-footer {
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.forgot-password-link {
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.forgot-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.help-text {
    color: #718096;
    font-size: 0.9rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.help-icon {
    font-size: 1rem;
}

.back-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.back-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.features-preview {
    max-width: 600px;
    width: 100%;
    margin-left: 3rem;
    position: relative;
    z-index: 2;
}

.features-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Dark theme support */
html[data-theme='dark'] .login-card {
    background: rgba(26, 32, 44, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .login-title {
    color: #f7fafc;
}

html[data-theme='dark'] .login-subtitle {
    color: #a0aec0;
}

html[data-theme='dark'] .form-label {
    color: #e2e8f0;
}

html[data-theme='dark'] .form-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

html[data-theme='dark'] .form-input:focus {
    background: #1a202c;
    border-color: #667eea;
}

html[data-theme='dark'] .login-footer {
    border-color: #4a5568;
}

html[data-theme='dark'] .help-text {
    color: #a0aec0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .instructor-login-container {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .features-preview {
        margin-left: 0;
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .instructor-login-container {
        min-height: calc(100vh - 150px); /* Account for smaller navbar and footer on mobile */
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .features-title {
        font-size: 1.5rem;
    }
    
    .back-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .instructor-login-container {
        min-height: calc(100vh - 120px); /* Account for even smaller navbar and footer */
        padding: 1.5rem 0.5rem;
        margin: 1rem 0;
    }
    
    .login-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .instructor-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
}
