/* begin - overrides for cas.css */
:root {
    --mdc-theme-body: unset
}


div#content {
  box-shadow: none;
  border: none;
  background: none;
}

.w-lg-50 {
    /* browser storage read/write view formatting fix */
    width: unset;
}

.mdc-card {
    /* browser storage read/write view formatting fix */
    box-shadow: unset;
}

.p-4 {
    /* browser storage read/write view formatting fix */
    padding: 0.5rem 3rem 3rem 3rem !important;
}

body {
   justify-content: unset;
   background: unset;
}

/* Fallback for older browsers like IE11 */
.ie11 body {
  display: block; /* Apply default in IE */
}

.ie11 button {
    background-color: #002676 !important;
}
/* Fallback for older browsers like IE11 */

.mdc-text-field--outlined {
    height: 35px;
}

.login-section {
    padding: 0rem 3rem;
    flex: 1 1 auto;
}

.mdc-button--raised {
    padding: 2px 10px;
    font-weight: bold;
}

.mdc-button--raised:not(:disabled, .reveal-password) {
    margin-right: 4px;
    border-radius: 4px 4px 4px 4px;
    /*
    filter: drop-shadow(1px 1px 2px #002676);
    */
    filter: unset;
    background-color: #002676;;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: inline-block;
}

.mdc-button--raised:not(:disabled, .reveal-password):hover {
    background-color: #004AAE;
    transform: scale(1.08);
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.mdc-button--raised:hover, input.btn-submit:hover {
    background-color: #002676
}

.mt-2 {
    font-size: 0.7em;
    text-transform: uppercase;
    padding: 0px;
}

.my-2 {
    margin-top: 2rem !important;
    margin-bottom: .5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 0rem !important;
}

.cf-turnstile {
    margin-bottom: 1rem !important;
}

div#cookiesSupportedDiv {
    color: var(--mdc-theme-error, #b00020);
}

/* For surrogate selector panel */
#titlePanel {
    margin-top: 0rem;
    margin-bottom: 1rem !important;
}

.banner {
    box-shadow: none;
    border: none;
    font-size: 1em;
    margin-bottom: 1.5rem !important;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: unset;
}

body {
    overflow: auto;
}

/* end - overrides for cas.css */

body {
    font-family: Arial, sans-serif;
    font-size: 1em;
}

h1 {
    font-size: 1.9em;
    font-family: times, serif;
    color: #002676;
}

h2 {
    font-size: 1.0em;
}

h3 {
    font-size: 0.9em;
}

h3.error {
    color: #ff0000;
    font-weight: normal;
    line-height: 1.1em;
}

#username, #password {
    font-family: Arial, sans-serif;
    font-size: 1em;
    width: 100%;
}

.help {
    text-transform: uppercase;
    padding-left: .5em;
}

small {
    font-size: .6em;
}

.debuggingInfo {
    display: none;
    color: #fff;
    font-size: .6em;
    padding-top: 30px;
    text-align: center;
}

fieldset {
    background-color: #E7EBF2;
    padding-left: 10px;
    padding-right: 20px;
}

.forScreenReaders {
    display: none;
}

/** All devices that understands the @media directive **/
@media screen and (min-width: 320px) {

    body {
        background-color: #808080;
        color: #002676;
        font-family: Arial, sans-serif;
        margin: 0;
        -webkit-text-size-adjust: none;
    }
    .wrapper {
        background: #ffffff no-repeat;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        border-top: solid #002676;
        /*
        filter: drop-shadow(2px 2px 4px #023b53)
        */
        box-shadow: 0 1px 2px 0 rgba(0,0,0,.12),0 2px 8px 0 rgba(0,0,0,.24);
    }

    #content {
        margin-left: 10px;
        margin-right: 20px;
    }

    p {
        padding: 0;
        margin: 0;
    }

    a, a:link {
        font-weight: bold;
    }

    /* Heading tags */
    h1 {
    }

    h2 {
        text-align: left;
        color: #004AAE;
        margin: 0;
        font-weight: normal;
    }

    /* Thanks to Nate and Wes at sourceforge.net */
    h3.error {
        color: #ff0000;
        font-size: .9em;
        font-weight: normal;
        margin: 10px 0 0 0;
        line-height: 1.3em;
    }

    h3 {

    }

    h3.calnet-help {
        font-size: 1.4em;
        color: #002676 ;
        text-transform: uppercase;
        margin-top: 2.5rem;
    }

    a, a:link, a:visited {
        color: #004AAE;
    }

    fieldset {
        background-color: transparent;
        text-align: left;
        margin: 0;
        padding: 0;
        border: 0;
    }

    /* Form fields */
    input, select {
        border: #ccc thin solid;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        border-radius: 4px;
    }

    /*noinspection CssOptimizeSimilarProperties*/
    input:focus, textarea:focus, a:focus, select:focus {
        outline-color: #004AAE;
        outline-width: thin;
    }

    input#username, input#password, select#surrogateTarget {
        width: 100%;
        font-size: 1.4em;
        padding: 2px;
    }

    /* remove while testing alternate input boxes
    input#username, input#password {
        height: 23px;
    }

    input#username:focus, input#password:focus  {
        background-color: #f9f3d1;
    }
    */

    /* Override Password-Manager highlighting */
    input#username:focus, input#password:focus  {
        background-color: transparent;
    }

    label {
        font-family: Arial, sans-serif;
        font-size: 1em;
    }


    form label {
        display: block;
        width: 80%;
        padding: 10px 0 3px 0;
        margin: 0 0 0 0;
        text-align: left;
    }
    form label[for=surrogate] {
        float: none;
        clear: both;
        display: inline;
        padding-left: 10px;
        font-size: 1em;
    }

    /*submit button styles */
    input.button, input.btn-submit, input.submitBtn {
        background-color: #FDB515;
        -webkit-appearance: none;
        border-radius: 4px;
        display: inline-block;
        color: #ffffff;
        font-size: 1em;
        letter-spacing: .05em;
        font-weight: normal;
        padding: 2px 10px;
        margin: 20px 10px 20px 0;
        text-transform: uppercase;
    }

    button#submitBtn:focus, button#submit:focus {
        outline: 2px solid #FDB515; /* Change to our preferred color */
        outline-offset: 0px;        /* Offset the outline slightly */
        border-radius: 4px;         /* Optionally, round the corners */
        box-shadow: 0 0 5px #FDB515; /* Add a glowing shadow */
      }


    input.button:hover, input.btn-submit:hover {
        background-color: #808080
    }

    input.button:active {
        position: relative;
        top: 1px;
    }

    .help {
        font-size: 0.8em;
        text-transform: uppercase;
    }

    .help-copy p {
        line-height: 140%;
        padding-bottom: 10px;
    }

    .help-copy ul {
        padding: 0 0 20px;
        font-size: .9em;
    }

    .help-copy li {
        padding: 0 0 8px 0;
    }

    .copyright {
        text-align: left;
        padding: 15px 0;
        color: #002676;
    }

    .atcal-banner {
        height: 79px;
        background: url("/cas/images/atcal-banner-f393f5c272c94910bce6c6bd59844caf.gif") no-repeat;
        border: 1px solid #000;
    }

    #successBox p {
        padding-bottom: 1em;
    }

    .infoBox {
        font-size: 80%
    }

    .debuggingInfo {
        display: none;
        color: #444;
        font-size: .6em;
        padding-top: 20px;
        text-align: center;
    }

    /*css for showing title if styles are disabled */
    .hidden {
        display: none;
    }
}
/** Specific for smart phone  sized devices **/
@media screen and (min-width: 320px) and (max-width: 480px) {
    .externalSiginLink {
        display: block;
        clear: both;
        margin-bottom: 2rem;
    }

    .logo {
        width: 300px;
        height: auto;
    }

    #logo{
        padding-left: .5rem;
        padding-top: .5rem;
       /* padding-bottom: .5rem; */
    }

    .login-section {
        border-right: 1px solid rgba(0, 0, 0, .2);
        border-right: var(--cas-theme-border-light, 1px solid rgba(0, 0, 0, .2));
        padding: 0rem .5rem;
        flex: 1 1 auto;
        /* IE flex fix */
    }

    .wrapper {
        /* background-image: url(/cas/images/UCBerkeley_Logo_Berkeley_480-ee93e82590f06b1aa3208463aac9746e.png) no-repeat; */
        width: 100%;
        /* padding-top: 120px; */
        padding-top: 30px;
        border-top-width: 16px;
        -webkit-box-shadow: 0 10px 10px rgba(185, 193, 203, 0.5);
        -moz-box-shadow: 0 10px 10px rgba(185, 193, 203, 0.5);
        /*
        box-shadow: 0 10px 10px rgba(185, 193, 203, 0.5);
        filter: drop-shadow(2px 2px 4px #023b53)
        */
        box-shadow: 0 1px 2px 0 rgba(0,0,0,.12),0 2px 8px 0 rgba(0,0,0,.24);
    }

    #content {
        margin-left: 10px;
        margin-right: 20px;
    }


    h2 {
        font-size: 1.3em;
        padding-bottom: 5px;
    }

    small {
        font-size: 12px;
    }

    input.button {
        margin-top: 20px;
    }

    form label {
        font-size: .95em;
    }

    .help-copy ul {
        padding-left: 40px;
    }


    .help {
        padding: 26px 90px 0 10px;
    }
}
/** Specific for large sized devices **/
@media screen and (min-width: 481px) {

    .externalSiginLink {
        float: right;
        padding: 10px 10px 0 10px;
    }


    body {
        background-color: #808080;
        /** background-image: url('/cas/images/CroppedRibbon2_CaliforniaGold_RGB-87b495130f6743db9594d3475d777537.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        **/
    }

    .logo {
        width:380px;
        height: auto;
    }

    #logo{
        padding-left: 2.5rem;
        padding-top: 1rem;
        /* padding-bottom: .5rem; */
    }

    .wrapper {
        /* background-image: url(/cas/images/UCBerkeley_Logo_Berkeley_580-10618a9d43e633fa437195b3b72c3d3e.png) no-repeat; */
        width: 580px;
        border-top-width: 18px;
        /* padding-top: 140px; */
        padding-top: 30px;
        -moz-border-radius-bottomleft: 10px;
        -webkit-border-bottom-left-radius: 10px;
        border-bottom-left-radius: 10px;
        -moz-border-radius-bottomright: 10px;
        -webkit-border-bottom-right-radius: 10px;
        border-bottom-right-radius: 10px;
        /*
        filter: drop-shadow(2px 2px 4px #023b53)
        */
        box-shadow: 0 1px 2px 0 rgba(0,0,0,.12),0 2px 8px 0 rgba(0,0,0,.24);
    }

    p {
        line-height: 1.5em;
    }

    h2 {
        font-size: 1.9em;
        padding-top: 10px;
        padding-bottom: 10px;
    }


    input.button, input.btn-submit {
        margin-top: 20px;
    }

    form label {
        padding-top: 15px;
    }

    input#username, input#password, select#surrogateTarget {
        font-size: 1.2em;
    }

    /*help and input button */
    .help {
        padding: 20px 40px 0 10px;
    }

    .help-copy p {
        font-size: .9em;
    }

    .help-copy ul {
        padding-left: 65px;
    }

    .text-danger, .mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text.text-danger {
        color: var(--cas-theme-danger, #58151c);
    }

    .mdc-text-field__icon.text-danger {
        color: var(--mdc-theme-error, #b00020);
    }

    .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
        color: #153e50;
        color: var(--cas-theme-primary, #153e50);
    }

    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

}
