@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Roboto:wght@300;400;500&display=swap');

/* General Styles */
:root {
    --primary-color: #ffc107;
    --secondary-color: #333;
    --text-color: #666;
    --white: #fff;
    --black: #000;
    --overlay-color: rgba(0, 0, 0, 0.7);
}

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

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    height: 100%;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    background-color: #1a1a1a;
}

/* Background Image and Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1484480974693-6ca0a78fb36b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1744&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-wrap {
    padding: 15px 0;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    max-width: 200px;
}

.site-branding img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-item {
    margin: 0 15px;
}

.menu-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-item a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

/* Login Container */
.wrapper {
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 20;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.login-box h1 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: left;
}

.form-group input,
.form-group input[type=text], 
.form-group input[type=password], 
.form-group input[type=email] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f6f6f6;
    color: #0d0d0d;
    text-align: left;
    caret-color: #0d0d0d !important;
    cursor: text;
}

/* Text selection color */
.form-group input::selection,
.form-group input[type=text]::selection,
.form-group input[type=password]::selection,
.form-group input[type=email]::selection {
    background-color: rgba(255, 193, 7, 0.3);
    color: #0d0d0d;
}

.form-group input:focus,
.form-group input[type=text]:focus, 
.form-group input[type=password]:focus, 
.form-group input[type=email]:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    color: #0d0d0d;
}

/* Password Field Styles */
.password-field {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

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

/* Hide all browser password reveal buttons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-search-decoration,
input[type="password"]::-webkit-search-cancel-button,
input[type="password"]::-webkit-search-results-button,
input[type="password"]::-webkit-search-results-decoration {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    visibility: hidden !important;
}

input[type="password"] {
    -webkit-text-security: disc !important;
    -moz-text-security: disc !important;
    text-security: disc !important;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
    display: block;
}

.btn:hover {
    background: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.links {
    margin-top: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.links a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.m-menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.m-menu-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--white);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.m-menu-btn span:nth-child(1) { top: 0px; }
.m-menu-btn span:nth-child(2) { top: 9px; }
.m-menu-btn span:nth-child(3) { top: 18px; }

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .m-menu-btn {
        display: block;
    }

    .primary-nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        padding: 80px 0;
        z-index: 1000;
    }

    .primary-nav-list.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .menu-item {
        margin: 15px 0;
    }

    .menu-item a {
        font-size: 20px;
    }

    .header-list li {
        margin: 10px 0;
    }

    .top-header-in {
        flex-direction: column;
        text-align: center;
    }

    .top-header-left {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 576px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .site-branding {
        max-width: 150px;
    }

    .login-box h1 {
        font-size: 24px;
    }
}

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

.fadeInDown {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Register page styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.register-container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.register-header p {
    color: #666;
    font-size: 0.9rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.register-form .form-group {
    margin-bottom: 0;
}

.register-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.register-form .form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.register-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    resize: vertical;
    min-height: 100px;
}

.register-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.form-footer a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #ffca2c;
    text-decoration: underline;
}

/* Login link styling */
.login-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #ffc107;
    color: #000 !important;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.login-link:hover {
    background: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    text-decoration: none !important;
}

/* Alert Styles */
.alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out;
}

.alert.show {
    top: 20px;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.countdown-text {
    font-size: 0.9em;
    opacity: 0.9;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

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

.alert-success {
    background-color: #28a745;
}

.alert-error {
    background-color: #dc3545;
}

.alert-warning {
    background-color: #ffc107;
    color: #000;
}

.alert-info {
    background-color: #17a2b8;
}

.btn-primary {
    background: #ffc107;
    color: #000;
}

.btn-primary:hover {
    background: #ffca2c;
}

@media (max-width: 768px) {
    .register-container {
        padding: 2rem;
    }
    
    .register-header h1 {
        font-size: 1.75rem;
    }
}

/* BASIC */

html {
    background-color: #f4f4f4;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 165, 0, 0.5), rgba(255, 238, 0, 0.5));
    z-index: -1;
}

body {
    font-family: "Poppins", sans-serif;
    height: 100vh;
    overflow: hidden;
}

a {
    color: #ddcd92;
    display:inline-block;
    text-decoration: none;
    font-weight: 400;
}

h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    display:inline-block;
    margin: 40px 8px 10px 8px; 
    color: #cccccc;
}

/* STRUCTURE */

.wrapper {
    display: flex;
    align-items: center;
    flex-direction: column; 
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 20px;
}

#formContent {
    -webkit-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    padding: 0px;
    -webkit-box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
    box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1;
}

#formFooter {
    background-color: #f6f6f6;
    border-top: 1px solid #dce8f1;
    padding: 25px;
    text-align: center;
    -webkit-border-radius: 0 0 10px 10px;
    border-radius: 0 0 10px 10px;
}

/* TABS */

h2.inactive {
    color: #cccccc;
}

h2.active {
    color: #0d0d0d;
    border-bottom: 2px solid #e9b95f;
}

/* FORM TYPOGRAPHY*/

input[type=button], input[type=submit], input[type=reset]  {
    background-color: #e9b95f;
    border: none;
    color: white;
    padding: 15px 80px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-size: 13px;
    -webkit-box-shadow: 0 10px 30px 0 rgba(233, 222, 95, 0.4);
    box-shadow: 0 10px 30px 0 rgba(233, 192, 95, 0.4);
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
    margin: 5px 20px 40px 20px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover  {
    background-color: #e8af44;
}

input[type=button]:active, input[type=submit]:active, input[type=reset]:active  {
    -moz-transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -o-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}

input[type=text], input[type=password], input[type=email] {
    background-color: #f6f6f6;
    border: none;
    color: #0d0d0d;
    padding: 15px 32px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 5px;
    width: 85%;
    border: 2px solid #f6f6f6;
    transition: all 0.5s ease-in-out;
    border-radius: 5px;
    caret-color: #0d0d0d !important;
    cursor: text;
}

input[type=text]:hover, input[type=password]:hover, input[type=email]:hover {
    caret-color: #0d0d0d;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
    background-color: #fff;
    border-bottom: 2px solid #e9b95f;
    caret-color: #0d0d0d;
}

input[type=text]:placeholder, input[type=password]:placeholder, input[type=email]:placeholder {
    color: #cccccc;
}

/* ANIMATIONS */

/* Simple CSS3 Fade-in-down Animation */
.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

/* Simple CSS3 Fade-in Animation */
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.fadeIn {
    opacity:0;
    -webkit-animation:fadeIn ease-in 0.4s;
    -moz-animation:fadeIn ease-in 0.4s;
    animation:fadeIn ease-in 0.4s;

    -webkit-animation-fill-mode:forwards;
    -moz-animation-fill-mode:forwards;
    animation-fill-mode:forwards;

    -webkit-animation-duration:0.5s;
    -moz-animation-duration:0.5s;
    animation-duration:0.5s;
}

.fadeIn.first {
    -webkit-animation-delay: 0.4s;
    -moz-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.fadeIn.second {
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.fadeIn.third {
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.fadeIn.fourth {
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    animation-delay: 1s;
}

/* Simple CSS3 Fade-in Animation */
.underlineHover:after {
    display: block;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background-color: #e2ab46;
    content: "";
    transition: width 0.2s;
}

.underlineHover:hover {
    color: #0d0d0d;
}

.underlineHover:hover:after{
    width: 100%;
}

/* OTHERS */

*:focus {
    outline: none;
} 

#icon {
    width:60%;
    padding: 1rem;
}

* {
    box-sizing: border-box;
}

.form-group input[type="password"]::-ms-reveal,
.form-group input[type="password"]::-ms-clear {
    display: none;
}

.form-group input[type="password"]::-webkit-contacts-auto-fill-button,
.form-group input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

/* Update password field input to prevent browser icon */
.form-group input[type="password"] {
    -webkit-text-security: disc !important;
}

/* User Profile Styles */
.user-profile {
    position: relative;
    margin-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
}

.user-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-profile:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .user-profile {
        margin-left: 0;
        margin-top: 10px;
    }

    .user-info {
        justify-content: center;
    }

    .user-dropdown {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .user-profile:hover .user-dropdown {
        display: block;
    }

    .user-dropdown a {
        color: var(--white);
        text-align: center;
        padding: 10px;
    }

    .user-dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Override any other styles that might affect the cursor color */
input {
    caret-color: #0d0d0d !important;
}

::selection {
    background-color: rgba(255, 193, 7, 0.3);
    color: #0d0d0d;
}

::-moz-selection {
    background-color: rgba(255, 193, 7, 0.3);
    color: #0d0d0d;
}

.login-box input[type=text],
.login-box input[type=password],
.login-box input[type=email],
.login-box .form-group input {
    caret-color: #0d0d0d !important;
    color: #0d0d0d !important;
}

/* Ensure cursor is visible on hover and focus */
.login-box input[type=text]:hover,
.login-box input[type=password]:hover,
.login-box input[type=email]:hover,
.login-box .form-group input:hover,
.login-box input[type=text]:focus,
.login-box input[type=password]:focus,
.login-box input[type=email]:focus,
.login-box .form-group input:focus {
    caret-color: #0d0d0d !important;
    color: #0d0d0d !important;
    background-color: #fff;
}

/* Add specific styles for the text selection cursor */
input, textarea, [contenteditable] {
    cursor: text !important;
    caret-color: #0d0d0d !important;
    -webkit-text-fill-color: #0d0d0d;
}

/* Ensure cursor and text remain visible on hover and focus */
input:hover, input:focus,
textarea:hover, textarea:focus,
[contenteditable]:hover, [contenteditable]:focus {
    cursor: text !important;
    caret-color: #0d0d0d !important;
    -webkit-text-fill-color: #0d0d0d;
    color: #0d0d0d !important;
}

/* Custom text selection cursor with high specificity */
html body .login-box input,
html body .login-box textarea,
html body .login-box [contenteditable="true"] {
    cursor: text !important;
    caret-color: #0d0d0d !important;
    -webkit-text-fill-color: #0d0d0d;
}

/* Ensure cursor visibility on hover and focus */
html body .login-box input:hover,
html body .login-box textarea:hover,
html body .login-box [contenteditable="true"]:hover,
html body .login-box input:focus,
html body .login-box textarea:focus,
html body .login-box [contenteditable="true"]:focus {
    cursor: text !important;
    caret-color: #0d0d0d !important;
    -webkit-text-fill-color: #0d0d0d;
}

/* Clickable elements */
html body .login-box button,
html body .login-box a,
html body .login-box [role="button"] {
    cursor: pointer !important;
}
