/* Auth Pages Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    color: #333;
    line-height: 1.5;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.top-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #2688eb;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #1a6ec0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login-link:hover {
    color: #1a6ec0;
}

.register-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.register-link:hover {
    color: #1a6ec0;
}

.nav-link {
    text-decoration: none;
    color: #2688eb;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: #1a6ec0;
}

.nav-link.active {
    color: #1a6ec0;
}

/* Main Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2688eb;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.logo i {
    font-size: 24px;
}

.logo img {
    height: 67px;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-links {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-links a {
    text-decoration: none;
    color: #2688eb;
}

.breadcrumb-links span {
    color: #777;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px 0;
    margin: 20px 0;
}

.login-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #777;
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
}

.login-subtitle ul {
    margin-left: 20px;
}

.login-form {
    margin-bottom: 0px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2688eb;
    box-shadow: 0 0 0 3px rgba(38, 136, 235, 0.1);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 16px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.login-options a {
     color: #2688eb;
}

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

.remember-me input {
    width: 12px;
    height: 12px;
}

.remember-me label {
    color: #555;
    font-size: 14px;
}

.forgot-password {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #2688eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.login-button:hover {
    background-color: #1a6ec0;
}

.login-button:disabled {
    background-color: #a0c4e8;
    cursor: not-allowed;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 25px;
    color: #777;
    font-size: 14px;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-button:hover {
    background-color: #f9f9f9;
}

.social-button.google {
    border-color: #e0e0e0;
}

.social-button.yandex {
    border-color: #fc3f1d;
    color: #fc3f1d;
}

.social-button.yandex:hover {
    background-color: #fff0ee;
}

.social-icon {
    font-size: 18px;
}

.register-link {
    text-align: center;
    color: #777;
    font-size: 15px;
}

.register-link a {
    color: #2688eb;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #777;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2688eb;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Field Errors */
.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.field-error.visible {
    display: block;
}

.input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.input-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.checkbox-error {
    background-color: #fff5f5;
    border-radius: 4px;
    padding: 8px;
    margin: -8px;
}

.checkbox-error label {
    color: #dc3545;
}

.first-time-block {
     margin-top: 30px;
     padding-top: 25px;
     border-top: 1px solid #e0e0e0;
}

.first-time-block h3 {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 15px;
      text-align: center;
}

.first-candidate-btn {
      display: block;
      padding: 14px 20px;
      background-color: #2688eb;
      color: white;
      text-align: center;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 500;
      transition: background-color 0.2s;
}

.first-company-btn {
      display: block;
      padding: 14px 20px;
      background-color: #fff;
      color: #333;
      text-align: center;
      text-decoration: none;
      border-radius: 8px; font-weight: 500;
      border: 1px solid #ddd;
      transition: all 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
   .top-nav .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-nav .nav-links {
        gap: 16px;
    }
}