.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
    padding: 20px 25px;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-title {
    color: white;
    margin: 0;
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 25px 25px;
    text-align: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

.auth-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.auth-header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 300;
}

.auth-header p {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.auth-form-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.auth-form-wrapper table {
    width: 100%;
    border-spacing: 0;
    margin-bottom: 20px;
}

.auth-form-wrapper table thead td {
    background: #667eea;
    color: white;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.auth-form-wrapper table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.auth-form-wrapper table tbody tr:last-child {
    border-bottom: none;
}

.auth-form-wrapper table td {
    padding: 15px 10px;
    vertical-align: top;
}

.auth-form-wrapper table td:first-child {
    width: 30%;
    font-weight: 500;
    color: #555;
    padding-right: 20px;
}

.auth-form-wrapper input[type="text"],
.auth-form-wrapper input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form-wrapper input[type="text"]:focus,
.auth-form-wrapper input[type="password"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.starrequired {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 3px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.remember-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #667eea;
    border-radius: 4px;
    transition: all 0.2s;
}

.remember-checkbox:hover input ~ .checkmark {
    background-color: #f0f2ff;
}

.remember-checkbox input:checked ~ .checkmark {
    background-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-links p {
    margin: 10px 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.social-auth-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.social-auth-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.user-info-section {
    text-align: center;
}

.user-info-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.user-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.user-card p {
    margin: 10px 0;
    color: #555;
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.adm-info-message-wrap {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.adm-info-message-wrap.adm-info-message-red {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }

    .auth-header h1 {
        font-size: 2em;
    }

    .auth-form-wrapper {
        padding: 20px;
    }

    .auth-form-wrapper table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .auth-form-wrapper table td:first-child {
        width: 100%;
        padding-right: 0;
        margin-bottom: 5px;
        font-weight: 600;
    }
}