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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2d3142;
    font-size: 24px;
    font-weight: 700;
    justify-content: flex-start;
}

.navbar-brand i {
    font-size: 28px;
    color: #4CAF50;
}

.navbar-toggler {
    border: none;
    padding: 5px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    font-size: 24px;
    color: #2d3142;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #2d3142;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
}

.nav-link:not(.btn-outline):not(.btn-primary):hover {
    color: #4CAF50;
    background-color: #f8f9fa;
}

.nav-link.btn-outline {
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.nav-link.btn-outline:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

.nav-link.btn-primary {
    background-color: #4CAF50;
    color: #ffffff;
}

.nav-link.btn-primary:hover {
    background-color: #45a049;
    color: #ffffff;
}

/* Sign Up Section */
.signup-section {
    padding: 100px 0 80px;
    min-height: calc(100vh - 200px);
}

.signup-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px;
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.signup-icon i {
    font-size: 40px;
    color: #ffffff;
}

.signup-icon img.signup-school-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.signup-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3142;
    margin-bottom: 10px;
}

.signup-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
}

.ain-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #e8f5e9;
    border-radius: 8px;
    color: #2d3142;
    font-size: 14px;
    margin-top: 10px;
}

.ain-info i {
    color: #4CAF50;
    font-size: 18px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e4e6eb;
    transition: all 0.3s;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3142;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4CAF50;
    font-size: 24px;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #2d3142;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #ff4444;
    margin-left: 3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible; /* Ensure button is not clipped */
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #6c757d;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

/* Ensure fields inside input-wrapper have proper padding */
.input-wrapper .form-control {
    padding-left: 45px !important;
    padding-right: 12px;
}

/* Ensure icons are positioned correctly in input-wrapper */
.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    color: #6c757d;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.form-control,
.form-select {
    
    border: 2px solid #e4e6eb;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3142;
    transition: all 0.3s;
    background-color: #ffffff;
    width: 100%;
}

.form-control {
    padding-left: 45px !important;
    padding-right: 12px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

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

/* Error messages */
.text-danger {
    color: #dc3545 !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.text-danger.small {
    font-size: 12px;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-control[readonly] {
    background-color: #f8f9fa;
    color: #2d3142;
    cursor: default;
}

.form-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.text-muted {
    color: #6c757d !important;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.text-muted i {
    font-size: 14px;
}

.form-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* AIN Verification */
#ain {
    padding-left: 45px !important;
    padding-right: 100px;
    pointer-events: auto; /* Ensure input is clickable */
}

.btn-verify {
    position: absolute;
    right: 8px;
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    z-index: 10; /* Increased from 1 to ensure button is above other elements */
    pointer-events: auto; /* Explicitly enable pointer events */
}

.btn-verify:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.btn-verify:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    pointer-events: none; /* Disable when disabled */
}

.btn-verify.verifying {
    background-color: #6c757d;
}

.ain-status {
    margin-top: 8px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.ain-status.success {
    display: block;
    background-color: #e8f5e9;
    color: #2d3142;
    border: 1px solid #4CAF50;
}

.ain-status.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ff4444;
}

.ain-status i {
    margin-right: 6px;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
}

.password-input-wrapper .form-control {
    padding-left: 45px !important;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 1;
}

.password-toggle:hover {
    color: #4CAF50;
}

.password-toggle i {
    font-size: 18px;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background-color: #e4e6eb;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background-color: #ff4444;
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background-color: #ffa726;
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background-color: #4CAF50;
}

/* Checkboxes */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    border: 2px solid #e4e6eb;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-check-label {
    font-size: 14px;
    color: #2d3142;
    line-height: 1.5;
    cursor: pointer;
}

.link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

.btn-submit:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.signup-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

/* Footer */
.footer {
    background-color: #2d3142;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 28px;
    color: #4CAF50;
}

.footer-description {
    color: #adb5bd;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 14px;
}

.footer-contact i {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 14px;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .signup-container {
        padding: 40px 30px;
    }

    .signup-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .signup-section {
        padding: 30px 0 60px;
        margin-top: 4rem;
    }

    .signup-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .signup-title {
        font-size: 24px;
    }

    .signup-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .btn-submit {
        padding: 14px 35px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    #ain {
        padding-right: 90px;
    }

    .btn-verify {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .signup-container {
        padding: 25px 15px;
    }

    .signup-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 16px;
    }

    .form-control,
    .form-select {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-control {
        padding-left: 40px !important;
        padding-right: 10px;
    }

    .navbar-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 16px;
    }

    #ain {
        padding-right: 80px;
    }

    .btn-verify {
        padding: 5px 10px;
        font-size: 12px;
    }
}
