/* Login Page Styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 40%;
    max-width: 800px;
    margin: 0 auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.logo-container i {
    color: white;
    font-size: 32px;
}

.login-title {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 0;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* User Type Selector */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.user-type-option {
    position: relative;
}

.user-type-option input[type="radio"] {
    display: none;
}

.user-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.user-type-label:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
}

.user-type-label.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.user-type-label i {
    font-size: 20px;
    margin-bottom: 6px;
}

.user-type-label span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Styles */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    z-index: 99;
    font-size: 16px;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: #667eea;
}

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

.input-action {
    position: absolute;
    right: 16px;
    z-index: 1;
}

.password-toggle {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.form-check-input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
}

.form-check-label {
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

/* Login Button */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.btn-text {
    flex: 1;
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* Decorative Elements */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive Design */

/* Large Tablets (1024px and down) */
@media (max-width: 1024px) {
    .login-wrapper {
        width: 50%;
    }
    
    .login-card {
        padding: 50px 40px;
    }
}

/* Tablets (768px and down) */
@media (max-width: 768px) {
    .login-container {
        padding: 16px;
        min-height: 100vh;
    }
    
    .login-wrapper {
        width: 90%;
        max-width: 500px;
    }
    
    .login-card {
        padding: 40px 30px;
        margin: 0;
        border-radius: 16px;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .logo-container i {
        font-size: 28px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .login-subtitle {
        font-size: 15px;
    }
    
    .user-type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .user-type-label {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
        text-align: left;
    }
    
    .user-type-label i {
        margin-right: 12px;
        margin-bottom: 0;
        font-size: 18px;
    }
    
    .user-type-label span {
        font-size: 14px;
    }
    
    .form-control {
        padding: 18px 16px 18px 50px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .btn-login {
        padding: 18px 24px;
        font-size: 16px;
    }
    
    /* Hide some floating shapes on tablets */
    .shape-2, .shape-4 {
        display: none;
    }
}

/* Mobile Phones (480px and down) */
@media (max-width: 480px) {
    .login-container {
        padding: 12px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .login-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .login-card {
        padding: 30px 20px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .logo-container i {
        font-size: 24px;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .user-type-label {
        padding: 14px 16px;
    }
    
    .user-type-label i {
        font-size: 16px;
    }
    
    .user-type-label span {
        font-size: 13px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 14px;
        color: #a0aec0;
        z-index: 2;
        pointer-events: none;
    }
    
    .form-control {
        padding: 16px 14px 16px 44px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .input-action {
        right: 14px;
    }
    
    .password-toggle {
        font-size: 14px;
    }
    
    .form-check-input {
        width: 16px;
        height: 16px;
    }
    
    .form-check-label, .forgot-password {
        font-size: 13px;
    }
    
    .btn-login {
        padding: 16px 20px;
        font-size: 15px;
        border-radius: 10px;
        margin-bottom: 16px;
    }
    
    .alert {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    /* Hide all floating shapes on mobile */
    .floating-shapes {
        display: none;
    }
}

/* Small Mobile Phones (360px and down) */
@media (max-width: 360px) {
    .login-container {
        padding: 8px;
        padding-top: 30px;
    }
    
    .login-card {
        padding: 25px 16px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .user-type-selector {
        gap: 8px;
    }
    
    .user-type-label {
        padding: 12px 14px;
    }
    
    .form-control {
        padding: 14px 12px 14px 40px;
        font-size: 15px;
    }
    
    .input-icon {
        left: 12px;
        color: #a0aec0;
        z-index: 2;
        pointer-events: none;
    }
    
    .input-action {
        right: 12px;
    }
    
    .btn-login {
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .login-container {
        align-items: flex-start;
        padding-top: 20px;
        overflow-y: auto;
    }
    
    .login-card {
        margin-bottom: 20px;
    }
    
    .login-header {
        margin-bottom: 15px;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .logo-container i {
        font-size: 20px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .login-subtitle {
        font-size: 13px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Loading Animation */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login.loading .btn-text::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
