/* 
*  Tamil Nadu Employment Portal - Admin Login Page Styles
*  Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container styles */
.admin-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    min-height: 650px;
}

/* Login panel styles */
.admin-login-panel {
    flex: 1;
    padding: 40px;
    max-width: 500px;
}

/* Showcase panel styles */
.admin-showcase-panel {
    flex: 1.2;
    background-color: #f0f5ff94;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Logo styles */
.admin-logo-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.admin-logo-circle {
    width: 40px;
    height: 40px;
    background-color: #162F6a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.admin-logo-circle i {
    color: white;
    font-size: 20px;
}

.admin-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Back link styles */
.admin-back-link {
    display: block;
    margin-bottom: 30px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.admin-back-link:hover {
    color: #162F6a;
}

/* Page title styles */
.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.admin-page-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.admin-page-subtitle a,
.admin-link {
    color: #162F6a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.admin-page-subtitle a:hover,
.admin-link:hover {
    text-decoration: underline;
}

/* Form styles */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.admin-form-label.required::after {
    content: "*";
    color: #162F6a;
    margin-left: 2px;
}

.admin-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-form-input:focus {
    border-color: #162F6a;
    box-shadow: 0 0 0 3px rgba(77, 123, 255, 0.1);
    outline: none;
}

/* Password field styles */
.admin-password-container {
    position: relative;
}

.admin-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    z-index: 1;
}

.admin-password-toggle:hover {
    color: #162F6a;
}

/* Checkbox styles */
.admin-form-check {
    display: flex;
    align-items: center;
}

.admin-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-left: 8px;
}

/* Link styles */
.admin-link-small {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.admin-link-small:hover {
    color: #162F6a;
    text-decoration: underline;
}

/* Button styles */
.admin-btn-primary {
    padding: 12px;
    background-color: #162F6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn-primary:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 123, 255, 0.2);
}

.admin-btn-primary:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.admin-text-center {
    text-align: center;
}

/* Showcase content styles */
.admin-showcase-content {
    text-align: center;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.admin-showcase-image {
    max-width: 75%;
    margin-bottom: 40px;
}

.admin-showcase-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.admin-text-primary {
    color: #162F6a;
}

.admin-text-success {
    color: #4caf50;
}

/* Footer styles */
.admin-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

.admin-footer a {
    color: #162F6a;
    text-decoration: none;
}

.admin-footer a:hover {
    text-decoration: underline;
}

/* Tab system styles */
.admin-tab-container {
    margin-bottom: 24px;
    width: 100%;
}

.admin-tab-header {
    display: flex;
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.admin-tab-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-tab-btn.active {
    background-color: #162F6a;
    color: white;
}

.admin-tab-panel {
    display: none;
    width: 100%;
}

.admin-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

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

/* Validation styles */
.admin-validation-error {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    text-align: center;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.admin-alert-primary {
    background-color: rgba(22, 47, 106, 0.1);
    border: 1px dashed #162F6a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-disclaimer-text {
    font-size: 0.875rem;
    color: #162F6a;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Department title on mobile */
.admin-dept-title-mobile {
    display: none;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Form check custom styles */
.form-check-custom {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 8px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
        max-width: 500px;
        min-height: unset;
    }

    .admin-login-panel {
        max-width: 100%;
        padding: 30px 20px;
        width: 100%;
    }

    .admin-showcase-panel {
        display: none;
    }

    .admin-logo-wrapper {
        margin-bottom: 25px;
    }

    .admin-page-title {
        font-size: 22px;
    }
    
    .admin-dept-title-mobile {
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .admin-login-panel {
        padding: 20px 15px;
    }

    .admin-logo-wrapper {
        margin-bottom: 20px;
    }

    .admin-logo-title {
        font-size: 18px;
    }

    .admin-page-title {
        font-size: 20px;
    }

    .admin-page-subtitle {
        margin-bottom: 20px;
    }

    .admin-form-input {
        padding: 10px 12px;
    }

    .admin-btn-primary {
        padding: 10px;
    }

    .admin-tab-btn {
        padding: 8px 5px;
        font-size: 13px;
    }

    .modal-dialog.modal-xl {
        max-width: 95%;
        margin: 10px auto;
    }

    .modal-body {
        padding: 1rem;
        max-height: 50vh;
    }
}

/* Fix for modal on small screens */
@media (max-width: 767px) {
    .modal-dialog.modal-xl {
        margin: 10px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem;
        flex-direction: column;
    }

    .modal-footer button {
        margin: 0.25rem 0;
        width: 100%;
    }
}

/* Fix for form input on small screens */
@media (max-width: 380px) {
    .d-flex.justify-content-between {
        align-items: flex-start;
    }

    .admin-link-small {
        margin-top: 4px;
        display: inline-block;
    }
}/* 
*  Tamil Nadu Employment Portal - Login Page Styles
*  Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container styles */
.tn-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    min-height: 650px;
}

/* Login panel styles */
.tn-login-panel {
    flex: 1;
    padding: 40px;
    max-width: 500px;
}

/* Showcase panel styles */
.tn-showcase-panel {
    flex: 1.2;
    background-color: #f0f5ff94;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Logo styles */
.tn-logo-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.tn-logo-circle {
    width: 40px;
    height: 40px;
    background-color: #162F6a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.tn-logo-circle i {
    color: white;
    font-size: 20px;
}

.tn-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Back link styles */
.tn-back-link {
    display: block;
    margin-bottom: 30px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.tn-back-link:hover {
    color: #162F6a;
}

/* Page title styles */
.tn-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.tn-page-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.tn-page-subtitle a,
.tn-link {
    color: #162F6a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tn-page-subtitle a:hover,
.tn-link:hover {
    text-decoration: underline;
}

/* Form styles */
.tn-form-group {
    margin-bottom: 20px;
}

.tn-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.tn-form-label.required::after {
    content: "*";
    color: #162F6a;
    margin-left: 2px;
}

.tn-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tn-form-input:focus {
    border-color: #162F6a;
    box-shadow: 0 0 0 3px rgba(77, 123, 255, 0.1);
    outline: none;
}

/* Password field styles */
.tn-password-container {
    position: relative;
}

.tn-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    z-index: 1;
}

.tn-password-toggle:hover {
    color: #162F6a;
}

/* Checkbox styles */
.tn-form-check {
    display: flex;
    align-items: center;
}

.tn-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-left: 8px;
}

/* Link styles */
.tn-link-small {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tn-link-small:hover {
    color: #162F6a;
    text-decoration: underline;
}

/* Button styles */
.tn-btn-primary {
    padding: 12px;
    background-color: #162F6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tn-btn-primary:hover {
    background-color: #3a67e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 123, 255, 0.2);
}

.tn-btn-primary:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tn-text-center {
    text-align: center;
}

/* Showcase content styles */
.tn-showcase-content {
    text-align: center;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.tn-showcase-image {
    max-width: 75%;
    margin-bottom: 40px;
}

.tn-showcase-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.tn-text-primary {
    color: #162F6a;
}

.tn-text-success {
    color: #4caf50;
}

/* Footer styles */
.tn-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #999;
    text-align: left;
}

.tn-footer a {
    color: #162F6a;
    text-decoration: none;
}

.tn-footer a:hover {
    text-decoration: underline;
}

/* Tab system styles */
.tn-tab-container {
    margin-bottom: 24px;
    width: 100%;
}

.tn-tab-header {
    display: flex;
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.tn-tab-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tn-tab-btn.active {
    background-color: #162F6a;
    color: white;
}

.tn-tab-panel {
    display: none;
    width: 100%;
}

.tn-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

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

/* Validation styles */
.tn-validation-error {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    text-align: center;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.tn-alert-primary {
    background-color: rgba(22, 47, 106, 0.1);
    border: 1px dashed #162F6a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tn-disclaimer-text {
    font-size: 0.875rem;
    color: #162F6a;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Department title on mobile */
.tn-dept-title-mobile {
    display: none;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Form check custom styles */
.form-check-custom {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 8px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 992px) {
    .tn-container {
        flex-direction: column;
        max-width: 500px;
        min-height: unset;
    }

    .tn-login-panel {
        max-width: 100%;
        padding: 30px 20px;
        width: 100%;
    }

    .tn-showcase-panel {
        display: none;
    }

    .tn-logo-wrapper {
        margin-bottom: 25px;
    }

    .tn-page-title {
        font-size: 22px;
    }
    
    .tn-dept-title-mobile {
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .tn-login-panel {
        padding: 20px 15px;
    }

    .tn-logo-wrapper {
        margin-bottom: 20px;
    }

    .tn-logo-title {
        font-size: 18px;
    }

    .tn-page-title {
        font-size: 20px;
    }

    .tn-page-subtitle {
        margin-bottom: 20px;
    }

    .tn-form-input {
        padding: 10px 12px;
    }

    .tn-btn-primary {
        padding: 10px;
    }

    .tn-tab-btn {
        padding: 8px 5px;
        font-size: 13px;
    }

    .modal-dialog.modal-xl {
        max-width: 95%;
        margin: 10px auto;
    }

    .modal-body {
        padding: 1rem;
        max-height: 50vh;
    }
}

/* Fix for modal on small screens */
@media (max-width: 767px) {
    .modal-dialog.modal-xl {
        margin: 10px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem;
        flex-direction: column;
    }

    .modal-footer button {
        margin: 0.25rem 0;
        width: 100%;
    }
}

/* Fix for form input on small screens */
@media (max-width: 380px) {
    .d-flex.justify-content-between {
        align-items: flex-start;
    }

    .tn-link-small {
        margin-top: 4px;
        display: inline-block;
    }
}